Hi all ,
i have two ultragrids binded to different sources .. i want to print the values into a document as a single one .. please help me
Add a gap between the two grid exports...
//Assign the Grid data to the newly generated report section //This will allow the Grid data to be displayed on the same document this.ultraGridDocumentExporter1.Export(this.ultraGrid1, reportSection); Infragistics.Documents.Reports.Report.IGap gap = reportSection.AddGap(); gap.Height = new FixedHeight(10); this.ultraGridDocumentExporter1.Export(this.ultraGrid2, reportSection);
Hi Gary,I am looking into approaches for these behaviors and I will follow up on this thread shortly with my findings.If you have any further questions at all in the meantime, please let me know.Sincerely,Chris KDeveloper Support EngineerInfragistics, Inc.www.infragistics.com/support
Chris,
I just took a look at your code and it works great for me. But both grids print out right on top of another. Is there a way to put a bit of padding between them?
Also, I have not found a way to control the width of the printed grid. Is there a way to do this?
Thanks,
Gary
Hi Arun,
May I be of any further assistance regarding this issue?
If you have any questions, regarding the attached sample or the solution, please let me know.
Sincerely,Chris KDeveloper Support EngineerInfragistics, Inc.www.infragistics.com/support
You can certainly print two discrete grids to a single document. I have constructed a sample, which I have attached to this thread, supplemented with comments that detail the entire process. Essentially, you will need to create a new report, add a section to this report and then export the discrete grids to this newly created section. You will then be able to print the report, which will display both grids on the same document.
Please let me know if you have any questions at all regarding this issue or the attached solution.