For the real usage, the web application has to be able to send dynamic content in either text or binary format. In this section, the dynamic binary content is addressed.
The dynamic binary contents, such as formatted confirmation letters, on-line filled special forms, various reports, invoices, as well as the other kind of binary files, figures, graphs, images, even programs, are very important for web application.
Starting from the WebRainbow v1.2, the dynamic binary content sending capability has been included. The CPrint function can send either text or binary content now. The only extra code needed for sending binary content is to call SetCgiHeader, specify a proper content-type, then all characters, including NULL character, are going to the browser.
Here, the sample program DynaBin shows how to use CPrint to send binary content. This sample program first let users enter the name, address, then merge these data into a PDF template file and send it back to user.
Note:
To compile this sample, follow the steps list bellow:
To debug DynaBin:
click on Debug in VB IDE for detailed instruction.
To run this sample, click on the following link for instruction of
For the latest information on WebRainbow, please see:
| http://www.dmfsys.com/wrainbow/ |
For questions / comments please email to:
| support@dmfsys.com |
Last modified on March 2, 2005