Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Printing CXTPReportControl
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Printing CXTPReportControl

 Post Reply Post Reply
Author
Message
zaksoft View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 June 2003
Location: Italy
Status: Offline
Points: 162
Post Options Post Options   Thanks (0) Thanks(0)   Quote zaksoft Quote  Post ReplyReply Direct Link To This Post Topic: Printing CXTPReportControl
    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.

 



Edited by zaksoft
VS2008 SP1 - VS2010 SP1 - VS2012 - MFC MBCS Statically linked
XTP 15.3.1 Static Link
---------------------------------------------------------
Davide Zaccanti - ZakSoft - www.zaksoft.com
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
zaksoft View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 June 2003
Location: Italy
Status: Offline
Points: 162
Post Options Post Options   Thanks (0) Thanks(0)   Quote zaksoft Quote  Post ReplyReply Direct Link To This Post 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.

 

 

 

VS2008 SP1 - VS2010 SP1 - VS2012 - MFC MBCS Statically linked
XTP 15.3.1 Static Link
---------------------------------------------------------
Davide Zaccanti - ZakSoft - www.zaksoft.com
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.219 seconds.