Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

RBGridPack and Screen Resolution

edited September 2013 in General
Hi

Not sure if this should be posted here or in the devices newsgroup.

We are having two issues which I guess are both related to RBGridPack and
Screen resolutions.

Grid too large...
Using RBGrid with the screen resolution set to 125% the grids expand out
massively but print OK.

Grid too small...
If we run an application on a server and as part of that we simply print to
a pdf file then the grid is printed about the size of a postage stamp


Is there a way of setting the PixelsPerInch size for RBGridPack (or some
other setting) to be independent of screen?

Best Wishes
Philip L Jackson



Code which we run in the application...

DataModule1.AdvantageReport.IsConnected := FALSE;
DataModule1.AdvantageReport.IsConnected := TRUE;
Template.LoadFromFile;
PDFSettings.Author := 'Completed jobs';
PDFSettings.Subject := '';
PDFSettings.Title := '';
TextFileName := CorrDir+ '\' + IntToStr(JobNumber) + '.pdf';
CreateAutoSearchCriteria('CUST_DETAILS_PDA','JOBNUMBER',soEqual,'',FALSE);
AutoSearchFields[0].SearchOperator := soEqual;
AutoSearchFields[0].SearchExpression := inttostr(JobNumber);
ShowAutoSearchDialog := FALSE;
ShowPrintDialog := FALSE;
DeviceType := dtPDF;
Print;
DataModule1.AdvantageReport.IsConnected := FALSE;

Comments

  • edited September 2013
    Hi Philip,

    Which version of ReportBuilder and Delphi are you using?

    I installed RBGridPack and tested with RB 15.01 and Delphi XE4. The
    output to screen and PDF were both the same with the screen resolution
    set to 100% and 125%.

    I also tried exporting to PDF with the printer set to "Screen" (which
    would emulate printing to PDF from a server without a printer installed.
    The resulting PDF was identical to the other two and the screen.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2013
    Hi

    Machine 1 - 125% Fonts on screen but printed OK was compiled with Delphi XE
    with RB 14.08

    Machine 2 - Service with no printer - Programmer is on holiday at present
    and I will get back to you later this week.

    Best Wishes

    Philip L Jackson

  • edited September 2013
    Hi

    2nd Programmer is also using 14.08 but with Delphi 2007.

    I have prepared some screen shots of an example we can replicate and will
    send these by email.

    Regards

    PLJ






  • edited October 2013
    Hi

    After installing 15.01 the key problem of the printing to PDF with no
    printer installed appears to have been resolved. The grid is now rendered
    as required without any re size.

    The issue of the 100%-125% still remains - I have sent a few screen shots by
    email.

    Best Wishes

    PLJ



    "Philip L Jackson" wrote in message news:52498b78$1@mail....

    Hi

    2nd Programmer is also using 14.08 but with Delphi 2007.

    I have prepared some screen shots of an example we can replicate and will
    send these by email.

    Regards

    PLJ






This discussion has been closed.