Jump to content
Software FX Community

Renaming Generated Image File Name


User (Legacy)
 Share

Recommended Posts

We do not expose a property to manipulate the image file, the only way to

get what you need to would be to

- Invoke GetHtmlTag and save it in a string variable

- "parse" the IMG tag to get the file name. This should be easy since the

generated img tag is very simple.

- Rename the file, knowing where these files are generated

- Recreate the IMG tag to point to the new file name

- Return this IMG tag to the HTML page

Also note that if you are doing this for security reasons, you may want to

check our bitstream generation. This is more secure since no files are

generated.

--

Regards,

JC

Software FX Support

"Dillon Lau Hon Mun" <dillau@yahoo.com.sg> wrote in message

news:feapxquaDHA.1340@WEBSERVER1...

> Hi

> I will like to know whether is there a way of re-naming the image file

> generated by ChartFX without exporting the image as I will like to append

> SessionID to the file name so that I can easily track and delete all the

> images for that particular session when the session ends.

>

>

Link to comment
Share on other sites

Hi

Thanks for your reply. I fully understand that bitstream generation is able

to fulfill my requirement. However, through this method, the drill-down

capabilities has to be sacrificed.

Thanks and Regards,

Dillon

"SoftwareFX Support" <support@softwarefx.com> wrote in message

news:AyQWYYzaDHA.1328@WEBSERVER1...

> We do not expose a property to manipulate the image file, the only way to

> get what you need to would be to

>

> - Invoke GetHtmlTag and save it in a string variable

> - "parse" the IMG tag to get the file name. This should be easy since the

> generated img tag is very simple.

> - Rename the file, knowing where these files are generated

> - Recreate the IMG tag to point to the new file name

> - Return this IMG tag to the HTML page

>

> Also note that if you are doing this for security reasons, you may want to

> check our bitstream generation. This is more secure since no files are

> generated.

>

> --

> Regards,

>

> JC

> Software FX Support

> "Dillon Lau Hon Mun" <dillau@yahoo.com.sg> wrote in message

> news:feapxquaDHA.1340@WEBSERVER1...

> > Hi

> > I will like to know whether is there a way of re-naming the image file

> > generated by ChartFX without exporting the image as I will like to

append

> > SessionID to the file name so that I can easily track and delete all the

> > images for that particular session when the session ends.

> >

> >

>

>

Link to comment
Share on other sites

Also note that the GetHtmlDataEx returns both the image and image map. You

could generate a temporary file that includes session info in the name and

return the img tag along with the map generated by ChartFX.

--

Regards,

JC

Software FX Support

"Dillon Lau Hon Mun" <dillau@yahoo.com.sg> wrote in message

news:hUKQkS4aDHA.1328@WEBSERVER1...

> Hi

>

> Thanks for your reply. I fully understand that bitstream generation is

able

> to fulfill my requirement. However, through this method, the drill-down

> capabilities has to be sacrificed.

>

> Thanks and Regards,

>

> Dillon

>

>

> "SoftwareFX Support" <support@softwarefx.com> wrote in message

> news:AyQWYYzaDHA.1328@WEBSERVER1...

> > We do not expose a property to manipulate the image file, the only way

to

> > get what you need to would be to

> >

> > - Invoke GetHtmlTag and save it in a string variable

> > - "parse" the IMG tag to get the file name. This should be easy since

the

> > generated img tag is very simple.

> > - Rename the file, knowing where these files are generated

> > - Recreate the IMG tag to point to the new file name

> > - Return this IMG tag to the HTML page

> >

> > Also note that if you are doing this for security reasons, you may want

to

> > check our bitstream generation. This is more secure since no files are

> > generated.

> >

> > --

> > Regards,

> >

> > JC

> > Software FX Support

> > "Dillon Lau Hon Mun" <dillau@yahoo.com.sg> wrote in message

> > news:feapxquaDHA.1340@WEBSERVER1...

> > > Hi

> > > I will like to know whether is there a way of re-naming the image file

> > > generated by ChartFX without exporting the image as I will like to

> append

> > > SessionID to the file name so that I can easily track and delete all

the

> > > images for that particular session when the session ends.

> > >

> > >

> >

> >

>

>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...