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

Creating a report Run-time

edited June 2003 in General
Hello,

I am trying my hand to draw a report run time. I read I can use the "sp"
properties to refer the with,left,top,ect as screen pixels. But I have
problems. I set the spwith of a tppdbText to the size of a DBGRID column,
but the text is truncated. Should I do such a kind of convertion?

ex.

with TppDBText.Create(self) do
begin
Name:= 'ppProva';
Band := ppDetail;
DataPipeline := ppBDEPipeline1;
DataField := 'Cod';
spWidth:= 15;//colum witdth in screen pixels
spLeft:= 0;
spTop:= 2;
end;

Thanks
marco

Comments

  • edited June 2003
    Marco,

    Using ScreenPixels is not the most accruate way to do this conversion. You
    should use the Width, Height, Left and Top properties with the default units
    of the report (ie. inches, or millimeters). You can use the utility
    conversion routines ppFromMMThousandths and ppToMMThousandths located in the
    ppUtils unit.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.