0

i'm working in Centura 2.1 team developer and I want to generate (.pdf) files direct from the system and every .pdf file has a unique name according to the data inside this file.

how can I do it ?

BODYBOND
  • 117
  • 1
  • 4
  • 12

2 Answers2

1

Try to look at the page: https://samples.tdcommunity.net/index.php?dir=

Here is a lot examples working with PDF.

ZephyCZ
  • 71
  • 4
1

After TeamDeveloper v5 you can use SalReportPrintToFile() which creates a PDF.

Otherwise you could install PDF995 ( free ) and call some of its many functions if you don't want to use Acrobat Writer ActiveX.

Steve Leighton
  • 790
  • 5
  • 15
  • Unfortunately SalReportPrintToFile() in version 2.1 allows only rtf or csv ,, I tried to use pdfFactory and it creates pdf files automatically but the file name is the same name of the QRP file , Is there any way to change the qrp name while printing ? – BODYBOND May 14 '20 at 07:24
  • Either Copy or Rename the .qrp to what ever name you want before you print it. VisFileRename (sOldFileName, sNewFileName) or VisFileCopy (sSourceFile, sTargetFile) – Steve Leighton May 15 '20 at 21:00