ZugFerd-Attachment withou a path?
Hi,
we are using RB 23.01 to make ZugFerd-PDF-Files. The code is simple:
The Problem is, that we can see the path of the ZugFerd-file in the PDF.
Is there any option to clear or the change this path?
Thanks in advance
Gerd Brinkmann
invent GmbH
Germany
we are using RB 23.01 to make ZugFerd-PDF-Files. The code is simple:
MyReport.DeviceType := dtPDFA3ZUGFeRD;
MyReport.PDFSettings.Attachments.Clear;
MyReport.PDFSettings.Attachments.Add(MyZugferdFile);
The Problem is, that we can see the path of the ZugFerd-file in the PDF.
Is there any option to clear or the change this path?
Thanks in advance
Gerd Brinkmann
invent GmbH
Germany
Comments
This is not a known issue. In my testing with the following code, the ZUGFeRD xml invoice was attached to the PDF as a single file as expected.
I first suggest upgrading to RB 23.03 to ensure you are using the latest release. Then, please create a simple example demonstrating this behavior and send it to support@digital-metaphors.com so we can research what is happening.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
thank you for your answer. Perhaps I didn't explain that correctly. My english is not so good.
The problem is in the PDF-file. When you examine in Acrobat Reader the attachment "factur-x.xml" you can see the path "c:\Temp". And I don't want to have this path in the PDF.
Thanks in advance
Gerd Brinkmann
invent GmbH
Germany
No problem, I believe I understood you correctly. Using the code I posted, the file inside Adobe Acrobat is a single file without a path included. Below is a screen shot of the Attachments section of Acrobat on my machine.
I will need to see an example of this to track down any issues.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
thanks again for your support. I made a few tests. In PDF-files from Delphi 10.3 or higher there is no descricption. So you are right. Unfortunately I have several PDF-files which are created with Delphi 7. And there is a description in the file.
Same code, different behaviour.
Okay, I think there's no further support for Delphi 7. Or can you change the output with D7?
Thanks in advance
Gerd Brinkmann
invent GmbH
Germany
Thanks for the additional information. Yes, Delphi 7 is still supported (for the time being).
I sent you a patch that solves the problem for RB 23.03. Any other RB customers with a valid software subscription can email support@ to receive the patch.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
after installing RB 23.03 and your patch the description in the PDF is gone.
Thank you very very much for your fast support!
Greetings from Germany
Gerd Brinkmann
invent GmbH
I installed RB 23.04 for Delphi 7 and the issue still exists. Does RB 23.04 for D7 not include this patch? Please can you send the patch to me and make sure, it will be included in next release?
Many thanks.
Holger
I verified RB 23.04 includes the fix made to RB 23.03.
Try performing a project build all. Try re-installing RB. It could be that your Delphi library path is causing the compiler to use an old .pas or .dcu unit rather than the updated unit.
If the issue persist, please create a simple, minimal Delphi project that demonstrates the issue and send to support@ in zip format.
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com