Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with printing usung PaintTo() method

Status
Not open for further replies.

BubbaDave

Programmer
Dec 30, 2000
23
US
Hi,

I have a PageControl that I am trying to send to a printer using the PaintTo() method. My problem is the page gets printed very small (about 1.5 x 1 inch). I now have considerably less hair trying to figure a way to scale the printed page to the size of the paper. Can anyone shed some light on this (the print problem, not the hair)?

Here is a snippet of the code I am using:
.
.
.
Prtr->BeginDoc();
for (int idx = Start; idx <= Stop; idx++)
{
PageControl1->Pages[idx]->PaintTo(Prtr->Handle, 10, 10);
if (idx != Stop)
Prtr->NewPage();
}
Prtr->EndDoc();
.
.
.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top