AndrewMozley
Programmer
I have a program which will re-print invoices from couple of data tables.
After the user has selected which invoice he wants, I build up two cursors for the invoice header and for the line details. Then set a relation between the two.
The format for the report is in a format file, MyInv.frx. I then effectively issue this command :
This allows the report to be printed and also lets the user select a printer. If however he selects a pdfprinter (I use CutePdf Writer), this offers the user a default name for the output file. In this case it is MyInv.pdf - so it is taken from the name of the report format.
I would like the default name to be the number of the invoice itself, ANM123 (which my program knows). Is there a way of setting this name, so that by the time Cutepdf ptrinter gets control, it will offer that instead?
Rather optimistically I tried including a clause <NAME "ANM123"> in the REPORT FORM statement, but this does not have the desired effect.
Thanks. Andrew
After the user has selected which invoice he wants, I build up two cursors for the invoice header and for the line details. Then set a relation between the two.
The format for the report is in a format file, MyInv.frx. I then effectively issue this command :
Code:
REPORT FORM Myinv TO PRINTER PROMPT NOCONSOLE
This allows the report to be printed and also lets the user select a printer. If however he selects a pdfprinter (I use CutePdf Writer), this offers the user a default name for the output file. In this case it is MyInv.pdf - so it is taken from the name of the report format.
I would like the default name to be the number of the invoice itself, ANM123 (which my program knows). Is there a way of setting this name, so that by the time Cutepdf ptrinter gets control, it will offer that instead?
Rather optimistically I tried including a clause <NAME "ANM123"> in the REPORT FORM statement, but this does not have the desired effect.
Thanks. Andrew