Print Page | Close Window

Command Bar with ReportControl on Form

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=13470
Printed Date: 07 October 2024 at 4:25am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Command Bar with ReportControl on Form
Posted By: alexshemesh
Subject: Command Bar with ReportControl on Form
Date Posted: 22 February 2009 at 10:42am
Hi
Im creating application in C# using Xtreme Suite 12.0
in my application i have simple form that should contain AxReportControl and command bar(AxCommandBars).
The problem is that command bar is not created if from contain AxReportControl.
Im doing like that
1.Create new form
2.Drag and Drop AxCommandBars control on the form in Designer
3.Compile and run application
4.I can see empty command bar in the form.
5.Stop applcation
6.Drag and Drop AxReportControl on Form in designer
7.Compile and run appliction
8.I can see report control but Command Bar is missing for some reason.

What im doing wrong?




Replies:
Posted By: Oleg
Date Posted: 23 February 2009 at 3:34am

Hi,

Can't reproduce it. What Visual Studio do you have ?
Are you sure its not under ReportControl? :)


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


Posted By: alexshemesh
Date Posted: 23 February 2009 at 10:36am
Hi Oleg.
Im using VS 2008.
Im sure its not under report control, even if i make size of report to be 1x1 still i cant see toolbar.



Posted By: alexshemesh
Date Posted: 24 February 2009 at 10:07am
Try this
Open MDIDocking example supplied with Xtreme Suite 12.0.
Add new Windows Form named Form1  to it.
Drop ReportControl and CommandBars controls on it.
Put following code to the end of frmMain_Load function
  Form1 frm = new Form1();
  frm.MdiParent = this;
  frm.Show();
Compile and run application.
You will see Form1 opened on startup, you can see report control but not CommandBars control.
Thanks.



Posted By: Oleg
Date Posted: 02 March 2009 at 7:54am
Hi,
 
You did'n wrote that you use MDI Child form... Yes it was discussed - CommandBars and DOckingPane have to be created in Load event of MDI child form. Copy all generated code to Fomr_Load.


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



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