It looks like you're new here. If you want to get involved, click one of these buttons!
I was experiencing the “It is not possible to assign a _clsPDFCreatorOptions to a clsPDFCreatorOptions” error each time there was a PDFCreator upgrade.
Recompiling the object fixed the problem, but all users had to be on the exact same version.
I knew it was an idiosyncrasy of the Navision assignment:
PDFCreatorOption := PDFCreator.cOptions;
I looked for a different, more forgiving, way to assign one to the other.
I found that using a Variant (V) as an intermediary solves the problem:
V := PDFCreator.cOptions;
PDFCreatorOption := V;
You MUST clear the variant after the assignment, or PDFCreator.EXE will not shutdown at the end of the process.
I’ve tried it with several version of PDFCreator and is seems to be working.
I have just rolled it out at a client with multiple PDFCreator versions. If they still have problems I will let you know.
RunOnceFile := BullZipPDF.GetSettingsFileName(TRUE);
PayCheckLedger2 := PayCheckLedger;
Resolved the error..But the new one is that
you cannot enter "item list" in Report No.