frxJPEGexport creates filename with a 1

mierlpmierlp Netherlands
edited 8:24AM 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 8:24AM
    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 8:24AM
    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 8:24AM
    Thanks...that did the trick >

Leave a Comment