Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to include htm in aspx? (Read 4207 times)
tongyin
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: May 26th, 2006
How to include htm in aspx?
Aug 16th, 2006 at 4:10am
Print Post  
I have exported a chart to a htm file, and I wanted to include it in my aspx page with master page, any advise ? Thanks...
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to include htm in aspx?
Reply #1 - Aug 16th, 2006 at 5:31am
Print Post  
Hi,

Use the HtmlBuilder.CreateImageMap method to get a string that contains the image map html tags. Insert that string into your aspx page and add an IMG tag that refers to the exported chart image and whose USEMAP attribute specifies the image map id.

You can export the image like this:

Image img = fc.CreateImage();
img.Save(path_on_server);
img.Dispose();

Stoyan
  
Back to top
 
IP Logged
 
tongyin
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: May 26th, 2006
Re: How to include htm in aspx?
Reply #2 - Aug 16th, 2006 at 8:13am
Print Post  
Hi,

My htm is created in a foxpro program, and i wish to show it in another web application. Insted of  using <a href> which will open a new page for the chart, I wish to include the htm within page with master page, thanks.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to include htm in aspx?
Reply #3 - Aug 16th, 2006 at 8:31am
Print Post  
Do you use the ActiveX version of the control in FoxPro?
  
Back to top
 
IP Logged
 
tongyin
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: May 26th, 2006
Re: How to include htm in aspx?
Reply #4 - Aug 16th, 2006 at 11:54pm
Print Post  
Yes... Smiley
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to include htm in aspx?
Reply #5 - Aug 17th, 2006 at 6:05am
Print Post  
You can use the FlowChart.SaveToBitmap method to export a jpg file. Call HtmlBuilder.CreateImageMap to get a string containing the image map tags. You can save that string in a file and in ASP.NET use the StreamReader.ReadToEnd to read the image map from that file. Then just insert the map tags into the page code.

Stoyan
  
Back to top
 
IP Logged
 
tongyin
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: May 26th, 2006
Re: How to include htm in aspx?
Reply #6 - Aug 17th, 2006 at 9:26am
Print Post  
Hi Stoyo,

Thanks for your advice. Anyway, I have used frameset in my form and it's working.

Besides, I found that the htm generated contains the VB Scripts which couldn't be viewed in FireFox browser, any idea? Thanks...
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to include htm in aspx?
Reply #7 - Aug 17th, 2006 at 10:29am
Print Post  
Hi,

The HtmlBuilder does not generate any scripts, and even if it did, we'd probably use JavaScript and not VBScript.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint