🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #14662

Re: Print settings

#14662
From: JD
Date: Wed, 06 Aug 2003 12:29
19 lines
1480 bytes
"Marco" <lazzarom@hotmail.it> wrote:
> Thanks JD but my application don't print yet. I try to save
> the bitmap into a file before print it but it is a white
> page bitmap.

Are the dimensions of the image correct?

>
> What I can still try?

Try commenting out the Lock and Unlock:

    //pImage->Canvas.Lock();
    PageControl->Pages[i]->PaintTo( pImage->Handle, 0, 0 );
    //pImage->Canvas.Unlock();
    Printer()->Canvas->StretchDraw( TRect(0, 0, 200, 200), pImage );

~ JD
Technical Details
Message-ID: <3f30f4b1$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-05!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!62.132.236.44.MISMATCH!ecngs!feeder.ecngs.de!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f2f7fd3@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,d5de15b490a744a2
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-08-06 05:40:05 PST
From: "JD" <nospam@nospam.com>
Sender: "JD" <nospam@nospam.com>
Reply-To: "JD" <nospam@nospam.com>
Subject: Re: Print settings
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 172.144.121.130 172.144.121.130    
References:  <3f2f7fd3@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3f30f4b1$1@newsgroups.borland.com>
Date: 6 Aug 2003 05:29:37 -0700
X-Trace: newsgroups.borland.com 1060172977 207.105.83.65 (6 Aug 2003 05:29:37 -0700)
Lines: 20
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-05!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!62.132.236.44.MISMATCH!ecngs!feeder.ecngs.de!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail