How to fit the report pages to stipreview report control?????
How to fit the report pages to stipreview report control?????
Hi,,,
how to fit the report pages to stireport preview control???
i mean i have docked the preview control to the form...Now when the report is shown then the report page doesnt fit automatically to the stireport preview control????
any suggestion how to do????
How to fit the report pages to stipreview report control?????
Hi.
Please call the following command once for your StiViewerControl:
Thank you.
Please call the following command once for your StiViewerControl:
Code: Select all
stiViewerControl1.SetZoomOnePage();
How to fit the report pages to stipreview report control?????
thanks..Its working...
Now when i click on maxmize button of form or drag the form to increase the size of the form then i want the page of the report to automatically fit to the form???????
As you provided the code i have used it when the report loaded...
the code i have written is when i am showing the form...
stiSales_Pick_List.Compile();
stiSales_Pick_List.CompiledReport.DataSources["Pick_List"].Parameters["@SalesOrderNo"].ParameterValue = orderNumber;
stiSales_Pick_List.Render(false);
stiPreviewControl1.SetZoomOnePage();
stiPreviewControl1.Report = stiSales_Pick_List;
How to do that????
Now when i click on maxmize button of form or drag the form to increase the size of the form then i want the page of the report to automatically fit to the form???????
As you provided the code i have used it when the report loaded...
the code i have written is when i am showing the form...
stiSales_Pick_List.Compile();
stiSales_Pick_List.CompiledReport.DataSources["Pick_List"].Parameters["@SalesOrderNo"].ParameterValue = orderNumber;
stiSales_Pick_List.Render(false);
stiPreviewControl1.SetZoomOnePage();
stiPreviewControl1.Report = stiSales_Pick_List;
How to do that????
How to fit the report pages to stipreview report control?????
Sorry to tell that its not.(i thought its working)...Above i have written the code in my post......
Am i writting the code properly???????
If i am wrong somewhere then o suggest me please...
Thanks....
Am i writting the code properly???????
If i am wrong somewhere then o suggest me please...
Thanks....
How to fit the report pages to stipreview report control?????
I checked your code and it worked as expected for 2008.2 version.
You can add that command stiPreviewControl1.SetZoomOnePage(); to ResizeEnd event handler of the Form on which the preview control is located.
Thank you.
You can add that command stiPreviewControl1.SetZoomOnePage(); to ResizeEnd event handler of the Form on which the preview control is located.
Thank you.