on 03-20-2023 3:57 PM
Hi,
with the update from Windows 11 21H2 to 22H2 the images aren't displayed correctly on windows forms and WPF applications. Even the icons on the CrystalReportViewer are effected.
I'm running Visual Studio Professional 2022 (version 17.5.2) with the latest Crystal Report service pack (CRforVS6413SP33)
To test the issue just create a new application with the Crystal Report default template and add an image.
On the report designer the images looks well
On the form designer the quality decrease a lot, even the parameters and zoom icons. Running the application results in the same poor quality.
I've tried to apply the fix for OLE Objects but the problem persists (KB3204578)
Sorry it never got completely resolved, according to R&D they partially fixed it so it looks better as an Icon but the image rendering itself wasn't fixed.
They say it'll be fixed in SP 36 due out in 6 months or so..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Checking with R&D to confirm it made it in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Apparently the fix never made it into SP 34 due to something else caused SP 34 to be released early.
I guess you'll have to wait for SP 35.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Fabrizio,
R&D did say it would be fixed in SP 34, I pinged them to verify it was fixed.
Can you verify you are using SP34 runtime?
To update uninstall SP 33 first, the 32 bit runtime and then the EXE that integrates into VS.
Then right click on the setup.exe and select Run As Administrator, install the 32 bit runtime when it prompts.
Is your project set for X86 or X64 in the properties? Try both ans see if it makes any difference.
Thanks again
Don
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Fabrizio,
I contacted my contact in R&D and he confirmed it is an issue in SP 33, it's been fixed in BOE.
He'll have the fix in SP 34 due out in a few months or so, no release date set at this time.
Thank you for finding the issue and reporting it.
Don
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the image file.
I'll ask R&D to test it.
One thing I did a while ago was to get this API into the Winform Viewer:
LstInterpolationMode.Enabled = true;
Array CRinterpolationMode = Enum.GetValues(typeof(System.Drawing.Drawing2D.InterpolationMode));
foreach (object obj in CRinterpolationMode)
{
//CRInterpolMode.GetTypeCode(CRinterpolationMode);
LstInterpolationMode.Items.Add(obj);
}
LstInterpolationMode.SelectedItem = System.Drawing.Drawing2D.InterpolationMode.NearestNeighbor;
Above creates a list box with the options:
Then set it in the Viewer like so:
crystalReportViewer1.InterpolationMode = (System.Drawing.Drawing2D.InterpolationMode)LstInterpolationMode.SelectedIndex;
Now I don't think I tested this with the WPF viewer and not sure if it's going to work but give it a try.
If the API is not recognised then all I can suggest is to use the WindowsForm viewer, we never spent much time updating the WPF viewer because no one was using it and better to spend resources on the WInForm and WebForm viewers.
Thanks
Don
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you attach the image file you are using so we can test it also?
If the file doesn't attach append *.txt to it and it should attach
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sure, here the image 00018681.jpg
User | Count |
---|---|
69 | |
8 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.