Zebra ZXP Series 3 Card printer and C1FlexReport problem

Posted by: luis.molino on 18 April 2020, 8:39 am EST

    • Post Options:
    • Link

    Posted 18 April 2020, 8:39 am EST - Updated 3 October 2022, 11:58 pm EST

    Card report designed, indicated right, left, top and bottom edges to null, it doesn’t respect the left value.

    Tried to set up from Code the size of the page with the value:

            Dim tarjeta As New Printing.PaperSize
            tarjeta.Width = 540
            tarjeta.Height = 860
    
            Dim options As New C1.Win.C1Document.C1PrintOptions()
            options.PrinterSettings = New Printing.PrinterSettings()
            options.PageSettings = New Printing.PageSettings()
            'Sin margenes
            options.PageSettings.PaperSize = tarjeta
            options.PageSettings.Margins.Left = 0
            options.PageSettings.Margins.Right = 0
            options.PageSettings.Margins.Top = 0
            options.PageSettings.Margins.Bottom = 0
            'orientation
            options.PageSettings.Landscape = True
            options.PrinterSettings.PrinterName = NombreImpresoraCarnet() '
    
    
                report.Generate()
                report.Print(options.PrinterSettings)
    

    Got the same results, it shows a left edge which wasn’t the indicated.

    I would thank you to indicate me how to resolve this problem. Thanks

  • Posted 18 April 2020, 8:41 am EST

    version C1.Win.FlexViewer.C1FlexViewer, C1.Win.FlexViewer.4.5.2, Version=4.5.20193.393

  • Posted 21 April 2020, 5:36 am EST

    Hi Luis,

    You can use the code snippet given below to set the margin in the report.

    c1FlexReport1.Layout.MarginLeft = 0
    c1FlexReport1.Layout.MarginRight = 0
    c1FlexReport1.Layout.MarginBottom = 0
    c1FlexReport1.Layout.MarginTop = 0
    

    If this does not help then please share a demo report which is not working fine at your end so that we can replicate the issue and assist you accordingly.

    Regards,

    Prabhat Sharma.

  • Posted 22 April 2020, 10:51 am EST

    Hi

    How I’m I supposed to do it?? With the to options it remains the same. I add an example

    Custom 86mm x 54mmZebraPruebas.zip

  • Posted 23 April 2020, 5:59 am EST

    Hello Luis,

    The issue you are getting is because of the distance between the detail section’s left edge and the first field of the detail section as shown in the attached screenshots.

    If this does not help, then please let us know.

    Regards,

    Prabhat Sharma.

    pics.zip

  • Posted 23 April 2020, 8:13 am EST

    Hi

    same code.

    results

    Tarjeta.zip

  • Posted 24 April 2020, 7:32 am EST

    Hi Luis,

    The issue in the last sample seems to be because of the image that is used in it. So to further investigate this we need the image file that you have used.

    Regards,

    Prabhat Sharma.

  • Posted 28 April 2020, 3:38 am EST

    Solved, the error was in the image resolution. Thanks.

Need extra support?

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

Learn More

Forum Channels