I have DevExpress raport.cs and DocumentViewer container. I want how fill displayed page to container?
Asked
Active
Viewed 837 times
-1
-
If I understand the question, you need to fill the whole page space? So try in the Report Designer modify Margins. Or please better describe what do you need to do. – Majkl Oct 22 '15 at 12:01
-
I use devexpress controls. I make with this report and put DocumentViewer on Form1. DocumentViewer.DocumentSource = Xraport. Document viewer take half size of form1. But i need see full report in this size of DocumentViewer. Something like fill to page in printer :) – Vanguard1990 Oct 22 '15 at 12:57
-
I need auto match report size to DocumentViewer size. 1 to 1 / 1:1 – Vanguard1990 Oct 22 '15 at 13:38
1 Answers
0
You need to use DevExpress.XtraReports.UserDesigner.XRDesignPanel and put it to TableLayout or other container and than use it :
xrdpReport.Visible = false;
xrdpReport.BeginInit();
xrdpReport.OpenReport(report);//Inherited from DevExpress.XtraReports.UI.XtraReport
xrdpReport.EndInit();
xrdpReport.Visible = true;
and after start the application you will see something like this (you can hide the upper toolbar)

Majkl
- 765
- 1
- 9
- 25
-
This report is not filled only his parent. When you fill report you cant have scroll bars. :) I need auto match size to DocumentViewer size. 1 to 1 / 1:1 – Vanguard1990 Oct 22 '15 at 13:36
-
I think that no DevExpress component can do it. When printing you always choose the size / dimensions of the paper ... Maybe make a PrintScreen of report and then resize it, but it's pretty crazy solutions. – Majkl Oct 22 '15 at 13:44
-