It's been my experience that many PDF printer applications default to
creating a pdf file with the same name as the print job. Since DPSpool
is presently hard-coded to always name print jobs 'DPSpool - xxxxxxxx'
(where 'xxxxxxxx' is the name of the file you send to DPSpool), that's
what they suggest as the PDF name.
Tim Rude
On 8/28/2014 1:56 PM, Ed Marfil, MAST UNITED wrote:
I suppose this is in the same vein ...
Currently in DPSPOOL when creating a pdf file (e.g. an invoice
document), I get prompted by the pdf program to name the file.
How can I make this automatic to take a field data from the report as
the filename?
Thanks for any help.
Ed.
*From:*[email protected]
[mailto:[email protected]] *On Behalf Of *Tim Rude
*Sent:* Wednesday, August 27, 2014 8:02 AM
*To:* [email protected]
*Subject:* Re: [Dataperf] Make two files in a same report
Yes. I do this in some of my reports. However you can't write to both
files simultaneously. The report creates first one file and then the
second. DP can only write to one file at a time.
Set up the report options to create an output file named C:\NUL
Also set the file format you want (Text or WP). Note that the file
format will apply to both files the report creates.
Then inside the report, you store in an RV the actual file name of the
first file you want to create. (Make sure it conforms to the 8.3 file
naming rules.) Then you have the 'Turn File Off' code, immediately
followed by the 'Open Filename in RV' code, immediately followed by
the 'Turn File On' code. That starts sending output to your file.
--------------------Store Value in Report Variable 250
------------------------
--------------------Turn File
Off----------------------------------------------
--------------------Begin Writing to Filename in Report Variable 250
----------
--------------------Turn File
On-----------------------------------------------
When you're ready to stop writing file 1 and begin writing file 2, do
the above steps again (store filename in RV, 'Turn File Off', 'Open
File in RV', 'Turn File On').
Of course, you have to structure your report so that you can process
and output all of the info for file 1, and then process and output all
of the info for file 2. Usually something like a couple of virtual
subreports inside the main Report Body, with each virtual subreport
being used to generate the output for one file.
Tim Rude
On 8/27/2014 9:42 AM, Juan A. Salhus R. wrote:
Friends: therre a way to generate two files in a same report?
regards
_______________________________________________
Dataperf mailing list
[email protected] <mailto:[email protected]>
http://lists.dataperfect.nl/cgi-bin/mailman/listinfo/dataperf
_______________________________________________
Dataperf mailing list
[email protected]
http://lists.dataperfect.nl/cgi-bin/mailman/listinfo/dataperf
_______________________________________________
Dataperf mailing list
[email protected]
http://lists.dataperfect.nl/cgi-bin/mailman/listinfo/dataperf