Bad elements width while printing on Epson FX-890

Posted by: petrj on 14 September 2017, 6:30 pm EST

  • Posted 14 September 2017, 6:30 pm EST

    [activereports_archive]Hello,



    I found a bug when I print section reports on printer Epson FX-890. There was no problem in previous version (ActiveReports6) but after update to version 7 (build 6163, I also tried 7470) all elements on page are wider (textBoxes, labels, lines …). See attachment - upper half is report printed by Laserjet Konica Minolta, lower half is report printed by Epson FX-890). Fonts size and height of all elements is ok. I tried to change many settings in printer driver but nothing helped. The printer has very low DPI (120/72). When I export the report to PDF and then I print it from Adobe Acrobat the width is fine.



    Thank you for your help







    [/activereports_archive]

  • Posted 14 September 2017, 6:30 pm EST

    [activereports_archive]PetrJ,



    I do not have Epson FX-890 printer at my end so cannot test the issue on this printer; however can you please let me know what happens when you try to print any other report on this printer? For example if you create a new report with 2 textboxes on the report and print to this printer, what results do you get? At my end, I have “HP LaserJet 2200 Series PCL 5” and “RICOH Aficio MP 2550 PCL 5e” printer and I cannot reproduce this issue on any of these printers. Is there any additional information which can help in reproducing this issue?



    Also ActiveReports includes an Interop system printer object that

    bypasses the .NET framework and prints directly to the printer drivers.
    Can you please try using the SystemPrinter class to handle printing and let us know your observations? You can get sample code from this link. Since this is for ActiveReports 6, you will need to make little modifications to the namespaces in the code.



    Regards,

    Sankalp

    [/activereports_archive]

  • Posted 14 September 2017, 6:30 pm EST

    [activereports_archive]I tried to print many reports but the effect is the same. I created sample with 2 textBoxes and some lines - see attachement. Our SW uses hundreds of clients with various printers and the problem is only with this Epson FX-890. I also tried as little workaround to print reports with PDFCreator but when PDFCreator prints created PDF using GhostScript the page is more magnified than using your ActiveReport.



    I did modification in sample code to print by Interop system printer. Printing this way is much better - when I edit printing rectangle to appropriate size the report is OK.



    Petr

    [/activereports_archive]

  • Posted 14 September 2017, 6:30 pm EST

    [activereports_archive]Supplement



    I modified our printing engine to use Interop system printer object. Width is correct now but there’s a problem with fonts - see attchement. How can I print this way to print the fonts correctly?



    Here is my printing source code:



                var sysPrinter = new SystemPrinter();



                if (sysPrinter.PrintDialog() == DialogResult.OK)

                {

                    sysPrinter.StartJob(sysPrinter.PrinterSettings.PrinterName);               



                    foreach (Page page in _report.Document.Pages)

                    {

                        sysPrinter.StartPage();



                        sysPrinter.Graphics.PageUnit = System.Drawing.GraphicsUnit.Pixel;



                        var rec = System.Drawing.RectangleF.FromLTRB(0,0,page.Width,page.Height);

                        page.Draw(sysPrinter.Graphics, rec);



                        sysPrinter.EndPage();

                    }



                    sysPrinter.EndJob();

                }



    Thank you for your help.

    [/activereports_archive]

  • Posted 14 September 2017, 6:30 pm EST

    [activereports_archive]PetrJ,



    If I am not wrong then you are currently using a dot matrix printer. Can you please try updating the printer drivers and check if it resolves the issue? In addition to this, can you please take a look at this forum post and try the suggestions provided?



    Regards,

    Sankalp

    [/activereports_archive]

  • Posted 14 September 2017, 6:30 pm EST

    [activereports_archive]

    Sankalp,



    I’m already using the latest printer drivers downloaded directly from epson.com (epson13444.exe).
    There's no choice “Print text as graphics” in printer settings :-(  I had to give the printer back to our upset client therefore I had to make a workaround - I export reports to PDF and send created PDF to Acobat Reader (AcroRd32.exe /p file.pdf). I would rather print reports directly!



    Regards

    PetrJ







    												<span class="txt2">
    													</span>[/activereports_archive]
    
  • Posted 14 September 2017, 6:30 pm EST

    [activereports_archive]PetrJ,



    I apologize for any inconvenience caused. You can continue using the workaround by exporting the report to PDF and print them. However you can also automate this process by handling the printing through acrobat reader. Please take a look at this link for more information on how to implement it.



    Regards,

    Sankalp

    [/activereports_archive]

  • Posted 14 September 2017, 6:30 pm EST

    [activereports_archive]We solve this problem using the driver from Epson LX 300.

    I hope it works for you too.[/activereports_archive]

  • Posted 5 February 2019, 4:40 am EST

    Sometimes you may face printer issue due to unusual activity. When you are trying to print something it displays a message an Epson Printer Error Code 0x9d message on your screen. If this happens with you then follow this quick fixes from this link Easy Steps To Fix Epson Printer Error Code 0x9 and get rid of the problem within a short span of time.

Need extra support?

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

Learn More

Forum Channels