I attached a couple methods from our app, in 2 methods you can see how we add images to
Infragistics.Documents.Report.Report [and how we disposed objects]
and in 2 methods how we try to save report to mempory or to FS ..
When we try to PUBLISH [not create, exception is in PUBLISH method] REPORT with ~ 1000 rows [each row 2 images ~10 kb, total 2000 images] we got out of memory exception ..
I used “Scietech.Net Memory Profiler” and found that Infragistics.Documents.Color and Infragistics.Documents.SolidColourBrush
objects are not properly disposed, but I do not think that it causes that problem [size of objects that was not dispozed is small]..
Is it limitation in size of Infragistics.Documents.Report.Report
that can be saved to FS using Infragistics.Documents.Report.Report Publish method ?
Do you have any suggestion related with memory issue and Infragistics.Documents.Report.Report ?
I attached “TestForInfragisticsSupport” GUI app as RAR [zip] file.
You need Visual Studio 2008/2010 to build it.
As you see in reference we are using
Infragistic35.WebUi…v10.3 version
Note – for test
I attached example of check tif images that we will add to PDF.
2 images have to be included, side by side as one row ..
You have to set URL of those images in app form input boxes..
I have 2 test classes [I created them for particular test,did not spent too much time but
It will work perfectly for task]. Important class is XmlToPdf_Stream,
It should suppose to stream pdf [in my case
to new FileStream(PDFUrl, FileMode.Create);
But depends of cpu/ram of you machine, if you add significant number of rows [ex 10000] you will get out of memory exception…
One more question [NOT related with stream-memory problem].
Is it possible automatically to adjust size of column in PDF grid or table, depends of size of data ?
Hello Dmcmichael,
Thank you for the update. I will wait for your response and sample application.
Sincerely,
Georgi Sashev
Developer Support Engineer
Infragistics, Inc.
http://ko.infragistics.com/support
Sorry .. I did not have time..
But for this question I will create and attach complete app , that you can use directly, in a day or 2 ..
Were you able to handle this.
If you need further assistance with this matter I will be glad to help.
You just need to call the Save method. If you can provide me with a full sample that I can run I could investigate it further.