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.
Last Edit: Aug 21, 2010 12:46:25 GMT -5 by davidcope
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.
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.
Last Edit: Aug 22, 2010 2:26:50 GMT -5 by davidcope
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.
[b]Stefan[/b] - [a href=http://stefanpendl.runbasichosting.com/]Homepage[/a][br][br][b]Please give credit if you use code I post, no need to ask for permission.[/b][br][br]Run BASIC 1.01, Fire-/Waterfox (IE11, Edge), Windows 10 Professional x64, Intel Core i7-4710MQ 2.5GHz, 16GB RAM