|
안녕하십니까? 프린트문제가 저를 괴롭혀서 이렇게 글을 올립니다.
저의 프린트 루틴은 다음과 같습니다.
if ( Printer()->Printers->Count <= 0 )
return;
PrintDialog1->Options.Clear();
PrintDialog1->FromPage = 1;
PrintDialog1->MinPage = 1;
PrintDialog1->ToPage = pgcFormPage->PageCount;
PrintDialog1->MaxPage = pgcFormPage->PageCount;
if (PrintDialog1->Execute())
{
// 프린트 작업 시작
Printer()->BeginDoc();
// 현재폼의 bitmap을 얻지요..
Graphics::TBitmap* bitmap = GetFormImage();
TRect destR ;
if ( Printer()->Orientation == poLandscape )
{
// 세로방향
destR.Left = 0;
destR.Top = 0;
destR.Right = 6800 ;
destR.Bottom = 4800 ;
}
else
{
// 가로방향
destR.Left = 0;
destR.Top = 0;
destR.Right = 4800 ;
destR.Bottom = 3000 ;
} // end of if
// 확대...
Printer()->Canvas->StretchDraw(destR,bitmap) ;
// 프린트 작업 끝..
Printer()->EndDoc();
} // end of if
그런데 window 2000에서는 잘됩니다. 그런데 98에서는 빈종이만 나오는군요..
Printer()->Canvas->TextOut( 10, 10, "babo")를 하니 출력이 되는데 왜? bitmap으로는 출력이 안되죠..
답변부탁드립니다..
|