on 01-25-2022 11:00 AM
We are using CR2020 in a .NET-application (C#). Exporting a report as PDF-document the image-quality is very poor. Searching the internet to solve the problem we found out, that setting the option "Retain Original Image Color Depth" might solve the problem. But how can this be done when using CR2020 in a .NET-application? Is there any option that we can set via code? Or ist there any way to set a key in the registry?
Thanks very much for any help!!!
Gero
Hi Gero,
That option is a global value, uses it when creating a new report.
I don't see anywhere it's available in the SDK.
See if this helps...
Create a drop down list box and paste this into it:
LstInterpolationMode.Enabled = true;
Array CRinterpolationMode = Enum.GetValues(typeof(System.Drawing.Drawing2D.InterpolationMode));
foreach (object obj in CRinterpolationMode)
{
//CRInterpolMode.GetTypeCode(CRinterpolationMode);
LstInterpolationMode.Items.Add(obj);
}
// this is the default
LstInterpolationMode.SelectedItem = System.Drawing.Drawing2D.InterpolationMode.NearestNeighbor;
then in your view report routine add this:crystalReportViewer1.InterpolationMode = (System.Drawing.Drawing2D.InterpolationMode)LstInterpolationMode.SelectedIndex;You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.