whenever we are opening a report programatically which has a picture inbedded, and call .Dispose() or open it with a using() statement, the ImageBytes inside the report file get deleted.
Is this intended behaviour?
Opening with .Dipose():
Code: Select all
StiReport report = new StiReport();
string reportFile = "C:\dummyfile.mrt";
report.Load(reportFile);
report.Design(false);
report.Dispose();
Code: Select all
using (StiReport report = new StiReport()) {
string reportFile = "C:\dummyfile.mrt";
report.Load(reportFile);
report.Design(false);
}