Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Report control in MDI document view ?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Report control in MDI document view ?

 Post Reply Post Reply
Author
Message
unknow View Drop Down
Groupie
Groupie
Avatar

Joined: 14 January 2009
Location: Belgium
Status: Offline
Points: 62
Post Options Post Options   Thanks (0) Thanks(0)   Quote unknow Quote  Post ReplyReply Direct Link To This Post Topic: Report control in MDI document view ?
    Posted: 26 January 2009 at 5:26pm
Hi. Just a quick question ? is the report control designed for SDI document interface, or can it be used in MDI document architecture as well ?
 
I want to use it in a MDI document view with a splitter pane where the left pane is a Treeview and the right pane a Reportcontrol ; I used a listview before but I find many functionnalities in the reportcontrol that I can use.
 
Is there something against doing that ?
 
Thankx
Back to Top
unknow View Drop Down
Groupie
Groupie
Avatar

Joined: 14 January 2009
Location: Belgium
Status: Offline
Points: 62
Post Options Post Options   Thanks (0) Thanks(0)   Quote unknow Quote  Post ReplyReply Direct Link To This Post Posted: 01 February 2009 at 1:09pm
Please, any hint  ?
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 09 February 2009 at 8:15am
You can use MDI architecture.
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 11 February 2009 at 5:25pm
What kind of hint you need? see ReportSample.cpp - SDI app and change CSingleDocTemplate on CMultiDocTemplate follow any MDI sample...

CSingleDocTemplate* pDocTemplate;

pDocTemplate = new CSingleDocTemplate(

IDR_MAINFRAME,

RUNTIME_CLASS(CReportSampleDoc),

RUNTIME_CLASS(CMainFrame), // main SDI frame window

RUNTIME_CLASS(CReportSampleView));

//RUNTIME_CLASS(CTaskListView));

AddDocTemplate(pDocTemplate);

Back to Top
unknow View Drop Down
Groupie
Groupie
Avatar

Joined: 14 January 2009
Location: Belgium
Status: Offline
Points: 62
Post Options Post Options   Thanks (0) Thanks(0)   Quote unknow Quote  Post ReplyReply Direct Link To This Post Posted: 14 February 2009 at 9:54am

Thanks! I just needed to know if the report control could be used in MDI document/view architecture as all the programs I know of using the reportcontrol are always SDI.

My application has an explorer-like interface with a treeview on the left and a listview on the right ; I'm going to replace the listview by a reportcontrol view as it automatically handles grouping, sorting, printing etc...
 
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.156 seconds.