Hi,
I Need to print two or more ultracharts in a singe page of PDF not a seperate PDF File.
I used the following code,
ultraChart1.RenderPdfFriendlyGraphics(g1, 140, 120);
ultraChart2.RenderPdfFriendlyGraphics(g1, 140, 120);
I m getting these charts in seperate seperate page of section in a PDF File. (i.e)
UltraChart1 is added on Page1,and Second Chart2 is added on Page2.
I need these two charts in SinglePage Itself (i.e) Page1 itself.
How to make the solution for this...???
Kindly reply with the solution please...??
You can create a page, insert a Grid or some other content element at the center. Create a column and two rows and insert a chart in the first row and a table in the second.
You can find more information on how to work with a grid and other report elements here:http://help.infragistics.com/Help/NetAdvantage/NET/2008.2/CLR2.0/html/DocumentEngine_Report_Elements.html
k Max thanks for your reply.
yeah its working now. How to center the chart in the section page.??
I am using this simple code to make my chart in the center of report.While i center the chart object in ISectionPage,the following objects in the same Section Page are also get changed,aligned from the Starting position of Chart Canvas object.
My Need:
1. Ultra Chart to come in center of ISectionPage.
2. Table to also to come in center of the Same ISectionPage.
// Here s the code i am using.
Graphics g1 = sectChartPage.AddCanvas(((_sectFirst.PageSize.Width / 4)), 50).CreateGraphics();
ITable table = _sectChartPage.AddTable(((_sectFirst.PageSize.Width / 4) - 15), ((_sectFirst.PageSize.Height / 2) - (_sectFirst.PageSize.Height / 2) / 6));
table.Width =
new RelativeWidth(53);
Kindly reply if u ve any thought.
Rendering to the same graphics object should put the two charts in the same canvas. Are you inadvertently creating two pages?Try this code snippet and you should get two charts on the same page:
Report
report = new Report();ISection section = report.AddSection();ISectionPage page = section.AddPage();Graphics g1 = page.AddCanvas(0, 0).CreateGraphics();Graphics g2 = page.AddCanvas(300, 0).CreateGraphics();ultraChart1.RenderPdfFriendlyGraphics(g1);ultraChart2.RenderPdfFriendlyGraphics(g2);