Going through the same problem :S
simple code:
function Clickheretoprint()
{
var disp_setting="toolbar=yes,location=no,directories=yes,menubar=yes,";
disp_setting+="scrollbars=yes,width=800, height=600, left=25, top=25";
var content_value = document.getElementById("print_content").innerHTML;
var docprint=window.open("","",disp_setting);
docprint.document.open();
docprint.document.write('<html><head><title><?=_("Daily
mileage")?></title>');
docprint.document.write('</head><body marginwidth="0" marginheight="0"
onLoad="self.print()"><center>');
docprint.document.write(content_value);
docprint.document.write('</center></body></html>');
docprint.document.close();
docprint.focus();
}
<print_content> div contains <chart_div>
This code produces a blank (i.e. no chart) page. Furthermore on Google
Chrome it goes into an unresponsive state :S
So i need to PRINT that chart inside that div... stuck here also :(
Would surely appreciate any pointers ;)
On Monday, July 16, 2012 6:57:53 PM UTC+1, elton santos wrote:
>
> Look. Take it image how example. I wanna that onclick in button "Janela de
> Impressão", open something for can print, a popup, just. The problem is,
> when i generate a print, all is show less the chart =/
> The tables too is shown. Help me please =/
>
> 2012/7/15 Jinji <[email protected]>
>
>> I don't understand. If you have a working page with a chart, hitting
>> Print on the browser should just work, isn't it?
>>
>>
>> On Thu, Jul 12, 2012 at 4:29 PM, elton santos <
>> [email protected]> wrote:
>>
>>> I dont wanna convert a chart in image, but just print what is show in
>>> the chart. For example, i have a chart pie, i wanna print it, just. I've
>>> seen a website that make this, but i dont remember what was =/
>>>
>>> 2012/7/12 Jinji <[email protected]>
>>>
>>>> If converting the chart to an image is what you're looking for, then
>>>> I'm sorry, it's not supported. You can search the archives of this group
>>>> to
>>>> find some hacks regarding it, but they're all hacks.
>>>>
>>>>
>>>> On Thu, Jul 12, 2012 at 4:35 AM, elton santos <
>>>> [email protected]> wrote:
>>>>
>>>>> someone??? Please!
>>>>>
>>>>> Em quarta-feira, 11 de julho de 2012 16h13min53s UTC-3, elton santos
>>>>> escreveu:
>>>>>
>>>>>> Hi, i use Google Charts, but i have a question. How make for print
>>>>>> the charts using, for example, jquery?
>>>>>>
>>>>>> I create a button that onclick execute a function and get by id where
>>>>>> is the charts. So, i can print the google tables, the iframe and div,
>>>>>> but
>>>>>> dont print the charts =/
>>>>>> Why? From what i learned, its because SVG files. Please, what i make?
>>>>>> I need print the charts. Thanks!
>>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Google Visualization API" group.
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msg/google-visualization-api/-/Z84yHqLp3mQJ
>>>>> .
>>>>>
>>>>> To post to this group, send email to
>>>>> [email protected].
>>>>> To unsubscribe from this group, send email to
>>>>> [email protected].
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/group/google-visualization-api?hl=en.
>>>>>
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Google Visualization API" group.
>>>> To post to this group, send email to
>>>> [email protected].
>>>> To unsubscribe from this group, send email to
>>>> [email protected].
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/google-visualization-api?hl=en.
>>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Google Visualization API" group.
>>> To post to this group, send email to
>>> [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected].
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-visualization-api?hl=en.
>>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Visualization API" group.
>> To post to this group, send email to
>> [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/google-visualization-api?hl=en.
>>
>
>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-visualization-api/-/-784ZXaxCakJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.