Home Devices
New Blog Posts: Merging Reports - Part 1 and Part 2

ZugFerd-Attachment withou a path?

Hi,

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

  • Hi Gerd,

    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.
    begin
    ppReport1.DeviceType := dtPDFA3ZUGFeRD;
    ppReport1.PDFSettings.Attachments.Clear;
    ppReport1.PDFSettings.Attachments.Add('c:\Temp\factur-x.xml');

    ppReport1.Print;
    end;
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • Hello Nico,

    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
  • Hi Gerd,

    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.

    image
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • Hello Nico,

    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
  • Hi Gerd,

    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.
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • Hi Nico,

    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
Sign In or Register to comment.