Jump to content
Software FX Community

RE: Export method image sizing


Software FX

Recommended Posts

The Export command should read 

Chart.Export 9,"e:\wwwroot\Chart1.Jpg"

To generate a PNG image you would write

Chart.ImgTags = "PNG"

Chart.Export 9,"e:\wwwroot\Chart1.png"

Please note that there seems to be a bug in Netscape where a file with a PNG extension is not always displayed but if you generate the PNG file with a GIF extension (even though it is a PNG file) it should work fine (this is the approach used by our server component when using GetHtmlTag).

Regards,

Juan Cegarra

Software FX, Inc.

http://support.softwarefx.com

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

From: CfxIE4B On Behalf Of Scott Deitz

Posted At: Thursday, December 02, 1999 4:27 PM

Posted To: Server

Conversation: Export method image sizing

Subject: Export method image sizing

How do I control the image size when using the Export method in ASP?

I've tried the following, but get a 1-pixel image:

Chart.ImgWidth=155

Chart.ImgHeight=115

Chart.Export CHART_BITMAP,"e:\wwwroot\Chart1.bmp"

I saw mention of a UpdateSizeNow method, but can't find any

documentation on it. I want to do the same using this:

Chart.GetHtmltag(155,115,"Image")

but need to control the image name instead of using a Temp one.

Thanks.

Link to comment
Share on other sites

The Export command should read 

Chart.Export 9,"e:\wwwroot\Chart1.Jpg"

To generate a PNG image you would write

Chart.ImgTags = "PNG"

Chart.Export 9,"e:\wwwroot\Chart1.png"

Please note that there seems to be a bug in Netscape where a file with a PNG extension is not always displayed but if you generate the PNG file with a GIF extension (even though it is a PNG file) it should work fine (this is the approach used by our server component when using GetHtmlTag).

Regards,

Juan Cegarra

Software FX, Inc.

http://support.softwarefx.com

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

From: CfxIE4B On Behalf Of Scott Deitz

Posted At: Thursday, December 02, 1999 4:27 PM

Posted To: Server

Conversation: Export method image sizing

Subject: Export method image sizing

How do I control the image size when using the Export method in ASP?

I've tried the following, but get a 1-pixel image:

Chart.ImgWidth=155

Chart.ImgHeight=115

Chart.Export CHART_BITMAP,"e:\wwwroot\Chart1.bmp"

I saw mention of a UpdateSizeNow method, but can't find any

documentation on it. I want to do the same using this:

Chart.GetHtmltag(155,115,"Image")

but need to control the image name instead of using a Temp one.

Thanks.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...