Hi all,
I am having issues with images being "processed" by the Stimulsoft reporting tool. Basically, I primarily want to generate and export reports to Excel; however, when I do so, it seems the Stimulsoft tool is processing the image. In this process, it makes the image blurry and skews the aspect ratio of it. I imagine what it's doing is trying to manipulate it for proper printing (as I can see DPI settings, etc.), but I would like it to leave the image absolutely verbatim to go into Excel.
Is there any way to stop the tool processing the images like this? This is a deal-breaker for us, as we deliver all reports digitally so we need crisp, accurate images.
Thanks.
Images
-
- Posts: 2
- Joined: Wed May 26, 2010 7:35 pm
- Location: Brisbane, Australia
Images
Hello,
When exporting a report, images are processed depending on image properties and export options.
We cannot exclude completely processing of the images.
But it is possible to export images with initial dpi.
Please do following for this:
1. By default all images are rendered with 100dpi resolution. To use the initial dpi, please write the following code in the GetImageData event of image:
(sender as StiImage).MultipleFactor *= 100f / (sender as StiImage).ImageToDraw.HorizontalResolution;
2. By default all images are exported with resolution from export settings. To allow export of images with initial dpi, please set one from the following static properties to true:
StiOptions.Export.Html.UseImageResolution
StiOptions.Export.Excel.UseImageResolution
StiOptions.Export.Excel2007.UseImageResolution
These properties will be available in the next prerelease build.
Thank you.
When exporting a report, images are processed depending on image properties and export options.
We cannot exclude completely processing of the images.
But it is possible to export images with initial dpi.
Please do following for this:
1. By default all images are rendered with 100dpi resolution. To use the initial dpi, please write the following code in the GetImageData event of image:
(sender as StiImage).MultipleFactor *= 100f / (sender as StiImage).ImageToDraw.HorizontalResolution;
2. By default all images are exported with resolution from export settings. To allow export of images with initial dpi, please set one from the following static properties to true:
StiOptions.Export.Html.UseImageResolution
StiOptions.Export.Excel.UseImageResolution
StiOptions.Export.Excel2007.UseImageResolution
These properties will be available in the next prerelease build.
Thank you.
Images
Hi,
I seem to be experiencing the same problems with the Pdf export and UseImageResolution is not available for StiOptions.Export.Pdf. Or are there perhaps other settings available somewhere that I'm overlooking? Thank you for your time.
Edit:
I've tried using the settings in http://forum.stimulsoft.com/default.aspx?g=posts&t=5038, but I don't seem to see any noticeable improvement. In particular, I've tried setting the ImageResolution, ImageCompressionMethod, and ImageQuality properties.
Edit 2:
http://forum.stimulsoft.com/default.aspx?g=posts&t=4033 Using the settings object in that post seems to have helped me solve my problem.
I seem to be experiencing the same problems with the Pdf export and UseImageResolution is not available for StiOptions.Export.Pdf. Or are there perhaps other settings available somewhere that I'm overlooking? Thank you for your time.
Edit:
I've tried using the settings in http://forum.stimulsoft.com/default.aspx?g=posts&t=5038, but I don't seem to see any noticeable improvement. In particular, I've tried setting the ImageResolution, ImageCompressionMethod, and ImageQuality properties.
Edit 2:
http://forum.stimulsoft.com/default.aspx?g=posts&t=4033 Using the settings object in that post seems to have helped me solve my problem.