Users can print HTML output directly from the browser. This solution is lightweight and fast, but restricts your ability to format output exactly the way you want it.
If you require more typographic control over what you can get with HTML, then you will have to send your output in a different format, such as PDF. You can create PDF files using the VFP report writer and a PDF printer driver as described in our original response below.
Sent by Enrique on 04/27/2004 04:57:47 PM:
Now I can view mi info on the screen, but I need to send it to the printer.
I wan to send the information to one customer to the printer.
But if I want to send the information of the customers in the region, how can I send it to the printer and It look well?
P.D. Sorry for my bad english.
Sent by FoxWeb Support on 04/27/2004 11:31:40 AM:
Please be a little more specific. Would you like to send data back to the browser in HTML format, or do you want to create PDF files? If you want to create HTML output, then the Name Search and ContactMine2 samples illustrate how to do so.
For PDF output the instructions are below. The VFP code you would use would be identical to what you would use if you were creating a regular (non-Web based) FoxPro application.
Sent by Enrique on 04/26/2004 02:26:04 PM:
Any example to show a report on HTML?
Sent by FoxWeb Support on 02/10/2004 09:27:57 PM:
It is possible for you to use existing VFP reports, by sending their output to the Adobe Acrobat, or WIN2PDF printer driver to create PDF files. These files can be downloaded by users and viewed/printed with the PDF viewer, which is a free download. Although this technique works well with complicated report formats, most developers choose to simply output their reports as HTML code. Even though HTML provides less typographic control, it is much more efficient and avoids PDF-related problems on the client side.
Sent by Enrique on 02/09/2004 04:45:55 PM:
I am new programing on FoxWeb and I want to know what options I have to show a report on the screen and then the user can print it.
Anyone have an example?