ReportFooter small font warped

7 posts, 0 answers
  1. Koren
    Koren avatar
    70 posts
    Member since:
    Oct 2010

    Posted 05 Apr 2012 Link to this post

    We are having issues with some notes that appear in our report footers in 8pt Arial coming out "warped" (i.e. kind of italic but not quite).  We use this font in some detail lines and in the page footer and those appear fine.  If we render the report to PDF and then print it, it is also fine.  We only have the problem when we use the ReportProcessor PrintReport option.  I have double, triple checked that we are not doing anything different with these textboxes in the reports.  They are all set to 8pt Arial no bold, no italic.  In the same footer, some come out fine and some are warped.  No rhyme or reason that I can see.
    The attached picture shows two sets of notes - the first group from a report footer that show the problem and the second group from a detail section that are fine.

    Any ideas?
  2. IvanY
    Admin
    IvanY avatar
    417 posts

    Posted 09 Apr 2012 Link to this post

    Hi Koren,

    We were unable to reproduce the issue at our end with the layout described and the sample text provided - perhaps there are some other details that you are missing. In order to advise you appropriately it will be best if you send us a runnable sample that exhibits the problem and provide us with additional information, like what Report Viewer you are using and the exact print setup of the viewer and the printer. Additionally you can check if the problem is not printer related by trying another printer.

    Kind regards,
    IvanY
    the Telerik team
    NEW in Q1'12: Telerik Report Designer (Beta) for ad-hoc report creation. Download as part of Telerik Reporting Q1 2012. For questions and feedback, use the new Telerik Report Designer Forum.
  3. Koren
    Koren avatar
    70 posts
    Member since:
    Oct 2010

    Posted 09 Apr 2012 Link to this post

    We are not using a reportviewer in the batch print process.  I am including the code below for our printing.  We tried this to two different printers and got the same results.  It will be tough to get a runnable sample of the problem because these reports are part of a bigger system but I will see what I can do.

    private bool PrintReport(IReportDocument reportDocument, string trayName, string duplexOption)
            {
                bool _goodPrint = true;
                //Print report
                try
                {               
                    // Obtain the settings of the default printer.
                    System.Drawing.Printing.PrinterSettings _printerSettings = new System.Drawing.Printing.PrinterSettings();
                    _printerSettings.PrinterName = _printerName;
                    //_printerSettings.PaperSources
                    if (_printerSettings.IsValid)
                    {
                        // Adjust the printer settings if necessary...
                        _printerSettings.DefaultPageSettings.PaperSource = ReportUtility.GetSelectedPaperSource(_printerSettings, trayName);
                        if (duplexOption == "Vertical")
                            _printerSettings.Duplex = System.Drawing.Printing.Duplex.Vertical;
                        else if (duplexOption == "Horizontal")
                            _printerSettings.Duplex = System.Drawing.Printing.Duplex.Horizontal;
                         
                        // Print the report using the printer settings.
                        ReportProcessor _reportProcessor = new ReportProcessor();
                        _reportProcessor.PrintReport(reportDocument, _printerSettings);
                    }
                    else
                    {
                        _errorMessage += " Printer unvailable. ";
                        _logging.WriteMessage(_printRequestInfo + " Printer unavailable.");
                        _goodPrint = false;
                        _printerUnavailable = true;
                    }
                }
                catch (Exception ex)
                {
                    _errorMessage += "Error printing Analysis Data. Message: " + ex.Message;
                    _logging.WriteMessage(_printRequestInfo + " Error printing Analysis Data. Message: " + ex.Message);
                    _goodPrint = false;
                }
                return _goodPrint;
            }

  4. IvanY
    Admin
    IvanY avatar
    417 posts

    Posted 10 Apr 2012 Link to this post

    Hi Koren,

    Thank you for the code provided - we printed the report in the proposed manner, but once again we were unable to reproduce the issue. You can create a very simple report, it could be only one textbox with no data source - just experiment with the report you have and leave in it only the items that are causing the issue.

    Greetings,
    IvanY
    the Telerik team
    NEW in Q1'12: Telerik Report Designer (Beta) for ad-hoc report creation. Download as part of Telerik Reporting Q1 2012. For questions and feedback, use the new Telerik Report Designer Forum.
  5. Koren
    Koren avatar
    70 posts
    Member since:
    Oct 2010

    Posted 05 Dec 2014 in reply to IvanY Link to this post

    Okay, I know this took a while but just noticed this is still happening on a number of our reports.  I played with the reports yesterday changing the length of the text, what displays, comparing the font to text that appears correct, etc.  All of the text boxes that are printing odd (displaying okay in PDF) are in the report footer.  The font on all the text boxes in the footer is set to Arial 8pt.  If I remove the asterisk, the footnote appears to print correctly.  We send asterisk to the printer up in the detail section without a problem so I'm not sure what the issue would be in the report footer.
  6. Koren
    Koren avatar
    70 posts
    Member since:
    Oct 2010

    Posted 05 Dec 2014 in reply to Koren Link to this post

    Also tried same font and text including the asterisks out of word straight to our printer and that works fine.
  7. Hinata
    Hinata avatar
    146 posts
    Member since:
    Dec 2013

    Posted 10 Dec 2014 in reply to Koren Link to this post

    Hi Koren,

    Can you attach some kind of a really simple report which shows the described problem? Even better attach a project where this simple report is exported fine to PDF from the preview in the report designer, but when you run the app and export programmatically the result is not correct. Maybe this will help with resolving the problem.
Back to Top