Jump to content
Software FX Community

Re: Background picture


User (Legacy)

Recommended Posts

I still cannot get this to work... 

I have given the 'System' Change permissions to the BMP file, and tried

giving 'Everyone' Full Control as well. I'm using the following code:

Chart.Rgb2DBk = CHART_TRANSPARENT

sPhysical = Server.MapPath("water85x50.bmp")

Response.Write "Using Physical File: "+sPhysical+"<P>"

Set Pict = Chart.LoadPicture(sPhysical)

Set Chart.BkPicture = Pict

I get the correct path with the Response.Write statement on, but no image...

The best I've gotten is seeing the entire background of the chart turn

white.

I'm not sure what to try next - any ideas?

Thanks in advance.

Juan Cegarra wrote:

> To get access to http://support.softwarefx.com/cfxie'>http://support.softwarefx.com/cfxie you will need to

> register your CfxIE 2000 copy ( http://www.softwarefx.com/registration).

>

> The sample is very simple, all it does is use the LoadPicture and

> BkPicture property with the added comment about the permission

> requirements (Change) over the file that you are trying to load

>

> <font face="Verdana,Arial,Helvetica" size="2">

> This sample shows you how to use the BkPicture property<br>

> Please note that our component needs to have "Change" NT permissions on

> the bitmap you are

> trying to load since we use a Windows API that requires it. We will try

> to change this in the future

> but in the meantime you could manually set the required permissions for

> this file only.

> <p>

> <!-- Include this file so we can use all the ChartFX constants -->

> <!-- #include virtual="/Include/CfxIE.inc" -->

>

> <%

> Set chart = Server.CreateObject("ChartFX.WebServer")

>

> ' Server.MapPath receives a relative URL, typically it will

> point to a virtual

> ' directory so that the folder is the same even if you use the

> template

> ' in different web applications

> sPhysical = Server.MapPath("Paper.bmp")

>

> ' Uncomment to this line to double check the path returned by

> MapPath

> ' Response.Write "Using physical file:"+sPhysical+"<p>"

>

> ' Use the LoadPicture method first

> Set Pict = Chart.LoadPicture(sPhysical)

>

> ' Use the BkPicture property

> Set Chart.BkPicture = Pict

> %>

> <%= chart.GetHtmlTag(500,350) %>

> <br>

> </font>

>

> Regards,

>

> Juan Cegarra

> Software FX, Inc.

> http://support.softwarefx.com

>

> -----Original Message-----

> From: CfxIE4B On Behalf Of Philippos Argyris

> Posted At: Friday, October 29, 1999 10:25 AM

> Posted To: Server

> Conversation: Background picture

> Subject: Re: Background picture

>

> The samples directory seems empty to me.

>

> Would it be possible to post this message to this usergroup as well?

>

> Many thanks,

>

> Philippos

>

> Juan Cegarra wrote in message ...

> >The documentation may not be up-to-date but the LoadPicture is

> >definitely part of the server component.

> >

> >I just posted a message to shows how to use it

> >( http://support.softwarefx.com/cfxie'>http://support.softwarefx.com/cfxie - Samples - Misc), the trick is to

> >make sure the user impersonated by IIS has "Change" NT permissions on

> >the file (even though the server will not modify it).

> >

> >Regards,

> >

> >Juan Cegarra

> >Software FX, Inc.

> > http://support.softwarefx.com

> >

> >

> >-----Original Message-----

> >From: CfxIE4B On Behalf Of Scott Deitz

> >Posted At: Thursday, October 28, 1999 10:46 AM

> >Posted To: Server

> >Conversation: Background picture

> >Subject: Re: Background picture

> >

> >

> >Hi.

> >We just got the released version. I can't find the LoadPicture method

> >documented anywhere, and can't get it to work using the example you

> gave

> >below... Did it make it into the relaese?

> >Thanks.

> >

> >

> >Juan Cegarra wrote:

> >

> >> We added a LoadPicture method to the server component.

> >>

> >> Set MyPicture = Chart.LoadPicture("C:\Pictures\Test.bmp")

> >> Chart.BkPicture = MyPicture

> >>

> >> Regards,

> >>

> >> Juan Cegarra

> >> Software FX, Inc.

> >> juanc@softwarefx.com

> >>

> >> -----Original Message-----

> >> From: CfxIE4B On Behalf Of Scott Deitz

> >> Posted At: Friday, September 24, 1999 11:57 AM

> >> Posted To: Server

> >> Conversation: Background picture

> >> Subject: Background picture

> >>

> >> Hi again Juan.

> >>

> >> I am probably missing something obvious, but is it possible to use

> the

> >> BkPicture property in ASP? I can't seem to find how to use a Picture

> >> control in ASP that the BkPicture property requires...

> >>

> >> Your help is appreciated.

Link to comment
Share on other sites

I still cannot get this to work... 

I have given the 'System' Change permissions to the BMP file, and tried

giving 'Everyone' Full Control as well. I'm using the following code:

Chart.Rgb2DBk = CHART_TRANSPARENT

sPhysical = Server.MapPath("water85x50.bmp")

Response.Write "Using Physical File: "+sPhysical+"<P>"

Set Pict = Chart.LoadPicture(sPhysical)

Set Chart.BkPicture = Pict

I get the correct path with the Response.Write statement on, but no image...

The best I've gotten is seeing the entire background of the chart turn

white.

I'm not sure what to try next - any ideas?

Thanks in advance.

Juan Cegarra wrote:

> To get access to http://support.softwarefx.com/cfxie'>http://support.softwarefx.com/cfxie you will need to

> register your CfxIE 2000 copy ( http://www.softwarefx.com/registration).

>

> The sample is very simple, all it does is use the LoadPicture and

> BkPicture property with the added comment about the permission

> requirements (Change) over the file that you are trying to load

>

> <font face="Verdana,Arial,Helvetica" size="2">

> This sample shows you how to use the BkPicture property<br>

> Please note that our component needs to have "Change" NT permissions on

> the bitmap you are

> trying to load since we use a Windows API that requires it. We will try

> to change this in the future

> but in the meantime you could manually set the required permissions for

> this file only.

> <p>

> <!-- Include this file so we can use all the ChartFX constants -->

> <!-- #include virtual="/Include/CfxIE.inc" -->

>

> <%

> Set chart = Server.CreateObject("ChartFX.WebServer")

>

> ' Server.MapPath receives a relative URL, typically it will

> point to a virtual

> ' directory so that the folder is the same even if you use the

> template

> ' in different web applications

> sPhysical = Server.MapPath("Paper.bmp")

>

> ' Uncomment to this line to double check the path returned by

> MapPath

> ' Response.Write "Using physical file:"+sPhysical+"<p>"

>

> ' Use the LoadPicture method first

> Set Pict = Chart.LoadPicture(sPhysical)

>

> ' Use the BkPicture property

> Set Chart.BkPicture = Pict

> %>

> <%= chart.GetHtmlTag(500,350) %>

> <br>

> </font>

>

> Regards,

>

> Juan Cegarra

> Software FX, Inc.

> http://support.softwarefx.com

>

> -----Original Message-----

> From: CfxIE4B On Behalf Of Philippos Argyris

> Posted At: Friday, October 29, 1999 10:25 AM

> Posted To: Server

> Conversation: Background picture

> Subject: Re: Background picture

>

> The samples directory seems empty to me.

>

> Would it be possible to post this message to this usergroup as well?

>

> Many thanks,

>

> Philippos

>

> Juan Cegarra wrote in message ...

> >The documentation may not be up-to-date but the LoadPicture is

> >definitely part of the server component.

> >

> >I just posted a message to shows how to use it

> >( http://support.softwarefx.com/cfxie'>http://support.softwarefx.com/cfxie - Samples - Misc), the trick is to

> >make sure the user impersonated by IIS has "Change" NT permissions on

> >the file (even though the server will not modify it).

> >

> >Regards,

> >

> >Juan Cegarra

> >Software FX, Inc.

> > http://support.softwarefx.com

> >

> >

> >-----Original Message-----

> >From: CfxIE4B On Behalf Of Scott Deitz

> >Posted At: Thursday, October 28, 1999 10:46 AM

> >Posted To: Server

> >Conversation: Background picture

> >Subject: Re: Background picture

> >

> >

> >Hi.

> >We just got the released version. I can't find the LoadPicture method

> >documented anywhere, and can't get it to work using the example you

> gave

> >below... Did it make it into the relaese?

> >Thanks.

> >

> >

> >Juan Cegarra wrote:

> >

> >> We added a LoadPicture method to the server component.

> >>

> >> Set MyPicture = Chart.LoadPicture("C:\Pictures\Test.bmp")

> >> Chart.BkPicture = MyPicture

> >>

> >> Regards,

> >>

> >> Juan Cegarra

> >> Software FX, Inc.

> >> juanc@softwarefx.com

> >>

> >> -----Original Message-----

> >> From: CfxIE4B On Behalf Of Scott Deitz

> >> Posted At: Friday, September 24, 1999 11:57 AM

> >> Posted To: Server

> >> Conversation: Background picture

> >> Subject: Background picture

> >>

> >> Hi again Juan.

> >>

> >> I am probably missing something obvious, but is it possible to use

> the

> >> BkPicture property in ASP? I can't seem to find how to use a Picture

> >> control in ASP that the BkPicture property requires...

> >>

> >> Your help is appreciated.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...