Hi,
Out of the blue, my PDF creation in my report procedure stopped working.
It looks as if the chunk of PDF code after the open(report) does not get generated.
See the code below.
Same solution , a different app, the report procedure working fine, and the PDF code is generated.
OPEN(Report)
! Start of "After Opening Report"
! [Priority 2500]
!*** PDF-Tools v4.1 Start (Legacy 3)
! Start of "PDFX-Tools Before Init"
! [Priority 5000]
! End of "PDFX-Tools Before Init"
PDFXTR2.Init(Report, loc:pdf_filename,,PDFA_OFF) ! Added by PDF-Tools Templates v4.1
PDFXTR2.SetPaper(CHOOSE(SYSTEM{PROP:Autopaper}=True,Report{PROPPRINT:Paper},PAPER:USER), CHOOSE(Report{PROP:Thous}=True,PROP:Thous,CHOOSE(Report{PROP:MM}=True,PROP:MM,CHOOSE(Report{PROP:Points}=True,PROP:Points,0))), Report{PROPPRINT:PaperWidth}, Report{PROPPRINT:PaperHeight}, Report{PROP:Landscape}) ! Added by PDF-Tools Templates v4.1
PDFXTR2.SetCompression(TRUE,TRUE,FALSE,COMPRTYPE_C_AUTO,75,COMPRTYPE_I_AUTO,COMPRTYPE_M_AUTO) ! Added by PDF-Tools Templates v4.1
PDFXTR2.SetAuthor('The Vineyard Connection') ! Added by PDF-Tools Templates v4.1
In the template this line seems to decide whether to include or not
#AT(%AfterOpeningReport),WHERE(~%PDFXT4ClarioNETEnabled AND (%PDFXT4ABCTemplate=%False AND (UPPER(%ProcedureTemplate)='REPORT') OR UPPER(%ProcedureTemplate)='RUNTIMEREPORT'))
!*** PDF-Tools v4.1 Start (Legacy 3)
#INSERT(%SetupReportValues)
Think this is the %PDFXT4ClarioNETEnabled switch, but not sure where to check
Currently working through it but my template language skills not that great ![]()
thanks for any ideas of where to look
Johan
