|
Post by marcioc on Aug 8, 2010 13:11:16 GMT -5
Anyone already recorded a html screen in a PDF file in a RunBasic program?
|
|
|
Post by davidcope on Aug 21, 2010 12:45:27 GMT -5
Hi marcioc,
Two things came to mind when I looked at your question. Do you mean a screen shot or a PDF version of the page layout? If it is the latter, you could use an external PDF library (like PDFlib) by writing page layout commands into a file. Python also has an excellent PDF module - ReportLab. These ideas assume that you have these subsystems in place on your operating system of course.
Hope this Helps.
David.
|
|
|
Post by marcioc on Aug 21, 2010 23:55:14 GMT -5
Thank you for your tip. I believe that the best solution is to install a pdf or a xps printer, generate the report in html and sending it to a pdf printer. There are many free pdf printer programs available.
|
|
|
Post by davidcope on Aug 22, 2010 2:25:50 GMT -5
Yes, the PDF printer driver is a good solution and much simpler one too.
My only thought would be how much control you would have over the print dialogue from within the Run BASIC environment. I don't know the details of your system, but on Windows, pop-up dialogues can cause problems on unattended servers. Unless, of course, you can print via the command line. My main experience is with UNIX type systems where this can be done via command line and I can see how the SHELL() command could be used for this once the HTML report is generated.
Kind Regards, David.
|
|
|
Post by marcioc on Aug 29, 2010 20:01:28 GMT -5
You print your report on the screen in html and after print it to a PDF printer. The final printing will be in a PDF file.
My only problem is how to insert the control characters as the page skip.
|
|
|
Post by StefanPendl on Aug 30, 2010 10:07:05 GMT -5
Since you use the browsers print functionality, you do not have control over the page break, this will be done by the browser.
|
|
|
Post by sundale on Jun 29, 2012 23:21:49 GMT -5
You may need page break when you need to print the doc with titles, page numbers etc. you can use following code. It works well for most browsers.
html "<p STYLE=""page-break-after: always"">"
|
|