Net Talk Silent PDF printing to file for subsequent emailing as attachment

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…

  1. 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

  2. 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)
  1. 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.

Hi Everyone,
Solved!
I was printing PDF from a Browse and not a form. I looked at example 13 and see that they do a print from a form and the Progress field is the key.
Solution. I created a Dummy Memform with the Button to call the PDF report procedure and a Progress field.
So, I call the Dummy Memform from my Browse and this then prints the PDF and is done! It creates a link to the PDF for download but I am going to remove that and have my report.
Ron