Home
Analytics
How to Modify the print button action ! to directly print as pdf
Elkaras
Hello ^-^.
I have an issue, but do not know how to solve ..
if anyone knows how to modify that setting or scripting, please share your idea ^^
here's my question.
all you know the birt webviewer and it has toolbar, there is a button to print as html and pdf format.
first,
if print as html for landscape layout, I should change or set the print options manually, I think ...(it's the only way to print, I know) - Do you know how to set printer options as landscape when print as html in landscape layout ?
second ,
the problem in the first question, it's nothing matter in pdf format....
So my client wants to change the action of print button, as when user click the button, do not show the report print dialog layout, just only action ... print as pdf..
in my opinion, there is a way to call the function or process to print as pdf ..
but I cannot find ..it ..out ...
Please help me !!!!
thanks for reading ..^-^
Find more posts tagged with
Comments
Elkaras
T_T ..is there anyone ? help me out ?
mwilliams
Have you looked at the viewer JSP pages to find where you can make the only option PDF? I'll have to look into the landscape issue to see if there's anything that can be done.
Elkaras
Yes, I have ...
but I couldn't find the way to solve that .T_T..[ it's cause of my low programing skills ... ]
Now, I just have fixed the variable __print_format in "BirtPrintReportDialog.js" file to "pdf"
it had set "html" for default ...
Form now on, I'm look up that js file to make the print process without "Report print" Layer ^^
mwilliams
Would you want to avoid the print dialog altogether? There are further options for pdf, like the drop down with auto, fit to page, etc. and then the page range information. Do you want all of that to just go away? Or would you like the user to still have the option to choose the details, but just not have the html option?