Jump to content
Software FX Community

RE: More Cold Fusion Problems: Image Generation and bad template code


Software FX

Recommended Posts

>> No matter what I do, it ignores the height and width and generates a 300x300 

>> image.

Please try setting the ImgWidth and ImgHeight properties before the GetHtmlTag. We will fix this issue (reading correctly the first two parameters in ColdFusion) in the next service pack

<CFSET Chart1.ImgWidth = 549>

<CFSET Chart1.ImgHeight = 300>

<CFOUTPUT>#Chart1.GetHtmlTag(548,300,"Image","Chart1")#</cfoutput>

>> Also, the template generator generated the following border setting property

>> which did not work:

>> <CFSET Chart1.BorderS = 6553613>

This is a bug in the Template generator and it will be fixed in the next service pack

>> In addition, even though the template wizard shows my chart legend at the

>> bottem of the chart, it did not generate the proper code to put it there.

>> Instead, it ends up at the side of the chart.

The template generator does not generate code for positioning any of the chart tools (legend window, toolbar, data editor, etc.) so you will need to add the code that moves the legend window

<CFSET Legend = Chart1.LegendBoxObj>

Or

<CFSET Legend = Chart1.SerLegBoxObj>

<CFSET Legend.Docked = 258>

Regards,

Juan Cegarra

Software FX, Inc.

http://support.softwarefx.com

-----Original Message-----

From: Chris Denslow [ mailto:cdenslow@hgl.com]

Posted At: Tuesday, November 02, 1999 4:11 PM

Posted To: Server

Conversation: More Cold Fusion Problems: Image Generation and bad

template code

Subject: More Cold Fusion Problems: Image Generation and bad template

code

I am trying to do forced image generation in cold fusion. I took a template

out of the wizard and changed the last line from:

<CFOUTPUT>#Chart1.GetHtmlTag(548,300,"Auto","Chart1")#</cfoutput>

to

<CFOUTPUT>#Chart1.GetHtmlTag(548,300,"Image","Chart1")#</cfoutput>

No matter what I do, it ignores the height and width and generates a 300x300

image.

Also, the template generator generated the following border setting property

which did not work:

<CFSET Chart1.BorderS = 6553613>

It produces a "Failed attempting to find "Borders" property/method on the

object". I removed the capital "S" at the end of BorderS and it seemed to

work fine.

In addition, even though the template wizard shows my chart legend at the

bottem of the chart, it did not generate the proper code to put it there.

Instead, it ends up at the side of the chart.

My greates concern right now is with the first problem, because I want to do

the image generation.

Chris Denslow

cdenslow@hgl.com

Link to comment
Share on other sites

>> No matter what I do, it ignores the height and width and generates a 300x300 

>> image.

Please try setting the ImgWidth and ImgHeight properties before the GetHtmlTag. We will fix this issue (reading correctly the first two parameters in ColdFusion) in the next service pack

<CFSET Chart1.ImgWidth = 549>

<CFSET Chart1.ImgHeight = 300>

<CFOUTPUT>#Chart1.GetHtmlTag(548,300,"Image","Chart1")#</cfoutput>

>> Also, the template generator generated the following border setting property

>> which did not work:

>> <CFSET Chart1.BorderS = 6553613>

This is a bug in the Template generator and it will be fixed in the next service pack

>> In addition, even though the template wizard shows my chart legend at the

>> bottem of the chart, it did not generate the proper code to put it there.

>> Instead, it ends up at the side of the chart.

The template generator does not generate code for positioning any of the chart tools (legend window, toolbar, data editor, etc.) so you will need to add the code that moves the legend window

<CFSET Legend = Chart1.LegendBoxObj>

Or

<CFSET Legend = Chart1.SerLegBoxObj>

<CFSET Legend.Docked = 258>

Regards,

Juan Cegarra

Software FX, Inc.

http://support.softwarefx.com

-----Original Message-----

From: Chris Denslow [ mailto:cdenslow@hgl.com]

Posted At: Tuesday, November 02, 1999 4:11 PM

Posted To: Server

Conversation: More Cold Fusion Problems: Image Generation and bad

template code

Subject: More Cold Fusion Problems: Image Generation and bad template

code

I am trying to do forced image generation in cold fusion. I took a template

out of the wizard and changed the last line from:

<CFOUTPUT>#Chart1.GetHtmlTag(548,300,"Auto","Chart1")#</cfoutput>

to

<CFOUTPUT>#Chart1.GetHtmlTag(548,300,"Image","Chart1")#</cfoutput>

No matter what I do, it ignores the height and width and generates a 300x300

image.

Also, the template generator generated the following border setting property

which did not work:

<CFSET Chart1.BorderS = 6553613>

It produces a "Failed attempting to find "Borders" property/method on the

object". I removed the capital "S" at the end of BorderS and it seemed to

work fine.

In addition, even though the template wizard shows my chart legend at the

bottem of the chart, it did not generate the proper code to put it there.

Instead, it ends up at the side of the chart.

My greates concern right now is with the first problem, because I want to do

the image generation.

Chris Denslow

cdenslow@hgl.com

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...