FusionCharts Forum: blank output when printing div includes fusionchart - FusionCharts Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

blank output when printing div includes fusionchart

#1 User is offline   Homesick 

  • Forum Newbie
  • Group: Members
  • Posts: 8
  • Joined: 22-August 10

Posted 22 August 2010 - 03:02 AM

Dear Guys ,,



I am trying using JavaScript to print selective Div in the page which include a chart using this code:





Quote

var printContent = document.getElementById('popupContact');

var windowUrl = 'about:blank';

var uniqueName = new Date();

var windowName = 'Print' + uniqueName.getTime();

var printWindow = window.open(windowUrl, windowName, 'left=50000,top=50000,width=200,height=200');



printWindow.document.write(printContent.innerHTML);

printWindow.document.close();

printWindow.focus();

printWindow.print();

printWindow.close();




where "popupContact" is the div element which includes the charts I want to print out ,,



When I do so,, the charts did not appear!!, but if I use print from file menu in the browser the chart appears no problem ,,



So please tell me how to handle it ??



Thanks

Homesick
0

Other Replies To This Topic

#2 User is offline   Basundhara Ghosal 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2459
  • Joined: 15-September 09

Posted 23 August 2010 - 12:14 AM

Hi,

Welcome to FusionCharts forum. :)

It seems that you are adding the HTML content along with the Div content which might create some problem in browsers like IE.

In that case you need to re-render the chart with inner HTML befor printing it.

Hope this helps.

Regards,

Basundhara Ghosal

Follow us on Twitter :D
0

Other Replies To This Topic

#3 User is offline   Homesick 

  • Forum Newbie
  • Group: Members
  • Posts: 8
  • Joined: 22-August 10

Posted 23 August 2010 - 01:20 AM

Quote

Basundhara Ghosal (8/23/2010)
Hi,



Welcome to FusionCharts forum. :)



It seems that you are adding the HTML content along with the Div content which might create some problem in browsers like IE.



In that case you need to re-render the chart with inner HTML befor printing it.



Hope this helps.




Dear Basundhara ,



Thanks a lot for your reply,



but please could you tell me where to re-render the chart in my code?
0

Other Replies To This Topic

#4 User is offline   Homesick 

  • Forum Newbie
  • Group: Members
  • Posts: 8
  • Joined: 22-August 10

Posted 24 August 2010 - 05:04 AM

UP :)
0

Other Replies To This Topic

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic