Hi,
I want to silently print a PDF on my NT server and save it as a file which I can later attach to an email to clients. I can’t seem to get the correct settings for silent print ( do I leave the Report Target Blank?) and do I set the report output to Other and give the report a file name? Using NT 14.38 and C11.1 with SV Report to PDF.
Any insight appreciated.
Thanks,
Ron
For a big large report i have my approach, create a report.exe that received a parameter for specific client and others more parameter, then this .exe create a report in background in a server and when finish the report is send via email to a client.
Hi Ron,
You have Net Talk in your question - is this a report running on a Nettalk web server, or running under WIndows?
On a standard desktop app you set the following…
-
In the Report To PDF extension properties
a. set the Output Name Type to :Variable
b. For File Name: specify a variable e.g. pdfName -
Open the source for the procedure and find pdfName…
PDFReporter.SetUp PROCEDURE
! Start of "Report Target Method Data Section"
! [Priority 5000]
! End of "Report Target Method Data Section"
CODE
! Start of "Report Target Method Executable Code Section"
! [Priority 2500]
! Parent Call
PARENT.SetUp
! [Priority 5300]
!< Set your variable name here >
pdfName = CLIP(TEA:LastName) & '_' & CLOCK() & '.pdf'
! A unique name is probably good if you want to avoid error messages at runtime?
SELF.SetFileName(pdfName)
- In report Actions->Report Properties → Report Targets
a. Set target as Other and Other Target as PDF
b. Make sure Open report output after generated is unchecked
4. In report Actions->Report Properties → Preview Options
a. You might have to scroll right to find this tab?
b. Set Runtime Skip Preview to: True
hth !
The NetTalk Web Server is running under Windows (so your question is somewhat moot.)
I think your instructions will solve Rons problem.