frxJPEGexport creates filename with a 1

mierlpmierlp Netherlands
edited 1:10PM in FastReport VCL 5
I create a .jpg file based on frxJPEGexport

The filename i use : M-ticket
When the export is done the file is created correct
but the file name = M-ticket.1.jpg instead of M-ticket.jpg (without the .1.)

What causes this problem and how to solve

I use FastReport 5.6.8 std

Regards Peter

Comments

  • PolomintPolomint Australia
    edited 1:10PM
    Looks to me like the ".1" is being treated as a file extension, and is being replaced with ".JPG". Have you tried naming the file "M-ticket-1" or similar? And what about "M-ticket.1.jpg"?

    Cheers, Paul
  • chj501chj501 Germany
    edited 1:10PM
    Hi,

    the problem is that the exporter creates one file per page and the ".1." represents the page number.

    You can set the "SeparateFiles" Property to false at runtime:
    frxJPEGExport1.SeparateFiles := False

    Regards
    Christian
  • mierlpmierlp Netherlands
    edited 1:10PM
    Thanks...that did the trick >

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.