Print Page | Close Window

print with v 9.81

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=6037
Printed Date: 28 April 2024 at 3:44pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: print with v 9.81
Posted By: Algae
Subject: print with v 9.81
Date 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.




Replies:
Posted By: sserge
Date Posted: 17 January 2007 at 4:05pm
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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net