Usenet.com

www.Usenet.com

Group Index

Comp Thread Archive from Usenet.com

<-- __Chronological__ --> <-- __Thread__ -->

Re: Print content of TStringGrid - question



On Wed, 19 Nov 2003 06:28:53 +0100, "Maarten Wiltink"
<[EMAIL PROTECTED]> wrote:

>"Bert Prins" <[EMAIL PROTECTED]> wrote in message
>news:[EMAIL PROTECTED]
>
>> I want to send the content of a TStringGrid to a printer.
>> I've tried this:
>>
>> Printer.BeginDoc;
>> sgStructure.PaintTo(Printer.Handle, 10,10);
>> Printer.EndDoc;
>>
>> I must say: it works, but the result is about 2 x 2 cm !!!
>> Un-readable. Do I something wrong or is there a better way to
>> print the content of a TStringGrid?
>
>Without going into details of how to fix it, what went wrong is
>that you didn't correct for the resolution of the canvas.

Yes, I also figured that, but could not see any obvious solution
- printing in Delphi is one of my weak points
- could you provide a pointer



<-- __Chronological__ --> <-- __Thread__ -->


Usenet.com



Please check out one of the premium Usenet Newsgroup Service Providers below for access to Usenet.