Creating a report Run-time
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
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
This discussion has been closed.
Comments
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.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com