Print Page | Close Window

Printing CXTPReportControl

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1253
Printed Date: 06 November 2025 at 6:24pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Printing CXTPReportControl
Posted By: zaksoft
Subject: Printing CXTPReportControl
Date Posted: 09 October 2004 at 9:54am

I've embedded a CXTPReportControl into a CDialog, it's a small (legacy) tray icon program, can I print the content of the report even if my program is not  Doc/View based ?

TIA.

 



-------------
VS2022 - MFC MBCS Statically linked

XTP 23.1 Static Link

---------------------------------------------------------

Davide Zaccanti - ZakSoft - www.zaksoft.com




Replies:
Posted By: Oleg
Date Posted: 11 October 2004 at 12:06am

Try to embed CXTPReportView instead of CXTPReportControl. it support print without doc/view.

 

ps. CXTPReportView available in 9.50.



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: zaksoft
Date Posted: 18 October 2004 at 2:53am

I've tryied many ways to do printing from a Dialog.

1) Cannot embed CXTPReportView since (as stated in line 39 of .h)

CXTPReportView(); // protected constructor used by dynamic creation

so embedding will fail

2) I've embedded all function in a CDialog and worked with many samples from various sorces (like Code Project) to add support for print preview but unsuccessfull.

It's also possible (normal?) that the report requires more that a page ( portrait / landscape) for fitting all data. Do You plan to support printing in furure release ?

I'm writing a general routine embedded in a CDialog class that esecute a query over an ODBC sources, enum field and create a report of fetched data. It's wonderful how user can coocse fields and group. All works except printing... and it's mandatory..

Any help will be highly appreciated.

TIA.

 

 

 



-------------
VS2022 - MFC MBCS Statically linked

XTP 23.1 Static Link

---------------------------------------------------------

Davide Zaccanti - ZakSoft - www.zaksoft.com




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