Draw Fold marks on a Flexreport Document

Posted by: gloewer on 4 January 2022, 4:46 am EST

  • Posted 4 January 2022, 4:46 am EST

    Dear Sir or Madam,

    how to insert fold marks on each page into a FlexReportDocument. In VB6 you could simply call up startoverlay for each page in the VSPrinter object, and then “paint” directly on the page. Is there such a possibility for the Flexreport?

  • Posted 5 January 2022, 6:26 am EST

    Hello,

    There is no direct way to paint in the FlexReport documents. If you want to draw any shape to make it look like a fold mark then for that you need to add an image in FlexReport via ImageField to make it look similar.

    It will be helpful if you can share your desired output so that we can assist you accordingly.

    Regards,

    Prabhat Sharma.

  • Posted 6 January 2022, 4:36 am EST - Updated 3 October 2022, 10:44 pm EST

    Hello

    these 3 lines on each printpage on the same place.

    In the report itself, you cannot create a field for this, since sometimes the report header is sometimes further larger, sometimes the detail area is already at this point.

    The VSReport8LibCtl has been populated with the appropriate fields. Then this report was sent to the VSPrinter Control via “Render” method. In the VSPrinter Control, the “StartOverlay” method was then called for each page, then the lines were drawn with “DrawLine”, and the processing was stopped using the “EndOverlay” method.

    Can i edit a C1FlexReport document, somehow.

    I tried to draw “Report_StartPage” when creating the pages, but there is no Graphics Object on which I could draw the lines.

    Then I tried to use the overlay property when creating a report, but I can only put one image completely over everything, so I no longer see the actual report content.

    With the watermark Property I can see the rest of the content, but the image is also aligned normally at the edge of the page (PageSetting Margin).

    What other options do I have?

  • Posted 7 January 2022, 4:22 am EST

    Hello Gloewer,

    As your requirement is very specific and there is no way to draw Graphics in FlexReport so we have forwarded this to the developers and asked them if there is any other way for doing this.

    [Internal Tracking ID: C1WIN-26489]



    Regards,

    Prabhat Sharma.

  • Posted 7 January 2022, 9:41 am EST

    Hi Gloewer,

    I gave the “Overlay” property a try, and when using a PNG file with transparent background, it was painted above everything else, and in the transparent parts, the background was still visible.

    Attached is a report (from the “FlexCommonTasks” sample) and the PNG file.

    FlexCommonTasks.zip

    Does this help?

    Wolfgang

  • Posted 10 January 2022, 7:29 am EST - Updated 3 October 2022, 10:44 pm EST

    Hello

    that looks almost quite good. The only problem is that the overlay image is aligned to the edges of the page, and not to the printable edge of the page. Is there a possible solution for this? See previous images.

  • Posted 10 January 2022, 8:34 am EST

    As a workaround, you could reset the left margin (in ReportDesigner, section “Layout” => “MarginLeft”) to 0 (or to a value corresponding to the start of the printable page area supported by your printer). Thus the watermark should (hopefully) be printed on the left edge of the paper. Now you could move all reports fields to the right so that there is a gap between the overlay image and the report data.

    Hope this helps

    Wolfgang

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels