Last Updated: 1/Jun/2016
You can output different layouts of forms in 1 file by switching the forms between VrInit and VrQuit. VrSetForm can be specified in multiple times between VrInit and VrQuit and each VrSetForm can be called in different mode.
Here's a sample code:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
VrInit
VrSetPrinter("PDF,"PDF")
VrSetSpoolFilename2(handle,"c:\wingarc\sample2.PDF")
VrSetForm(handle,"c:\wingarc\sample.frm",1) <--Specify the first form in Random mode
VrsOut
・
・
VrEndPage
VrSetForm(handle,"c:\wingarc\sample2.frm",5) <--Specify the second form in Report-writer mode
VrsOut
・
・
VrEndRecord
VrPrint
VrSetForm(handle,"c:\wingarc\sample3.frm",5) <--Specify the third form in Report-writer mode
VrsOut
・
・
VrEndRecord
VrPrint
VrQuit
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Note:
- When form file is specified in Random mode, VrEndPage needs to be called at page break and at the end of the data.
- When form file is specified in Report-writer mode, VrPrint needs to be called when all the data is output.
- It's not supported to specify both frm and XML forms between VrInit and VrQuit.
Comments
0 comments
Please sign in to leave a comment.