print with v 9.81 |
Post Reply |
Author | |
Algae
Senior Member Joined: 08 January 2007 Location: United States Status: Offline Points: 217 |
Post Options
Thanks(0)
Posted: 08 January 2007 at 6:08pm |
Hello,
I am attempting to print a calendar view using version 9.81. In the print preview and printer device contexts the image renders perfectly, but is the size of a postage stamp. This is the code I'm using to print in the "OnDraw(CDC *pDC)" function: if ( pDC->IsPrinting() ) { ((CMainFrame*)AfxGetMainWnd())->HideMDITabs(); m_wndCalendar.GetActiveView()->Draw(pDC); } The output appears to be scaled to the CRect returned by GetClientRect(&r) instead of the CRect returned by pDC->GetClipBox(&r). I know this must be something glaringly simple that I'm overlooking, but if anyone has any ideas feel free to point me in the right direction. |
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Hi,
This is not a really good way for print. Since version 10 Toolkit has its own view class CXTPCalendarControlView, which implements printing features, and some helper classes like print options (page header, page footer, calendar date header like in outlook). I would suggest you upgrading to the latest version. -- WBR, Serge |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |