cancel
Showing results for 
Search instead for 
Did you mean: 

Poor quality images and icons on Windows 11 22H2

fabriziocs
Explorer
0 Kudos

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)

Accepted Solutions (1)

Accepted Solutions (1)

DonWilliams
Active Contributor
0 Kudos

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..

Answers (6)

Answers (6)

DonWilliams
Active Contributor
0 Kudos

Checking with R&D to confirm it made it in.

DonWilliams
Active Contributor
0 Kudos

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.

fabriziocs
Explorer
0 Kudos

I waited another 6 months for the SP35 but it still doesn't work

DonWilliams
Active Contributor
0 Kudos

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

fabriziocs
Explorer
0 Kudos

Crystal report version is 13.0.34.4636, both for 32 and 64 bit, SP 33 was uninstalled before.

Visual Studio Professional 2022 version is 17.6.3

I've tried to run the project with x86 and x64, make no difference

DonWilliams
Active Contributor
0 Kudos

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

fabriziocs
Explorer
0 Kudos

The problem persist with the latest SP 34

DonWilliams
Active Contributor
0 Kudos

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

fabriziocs
Explorer
0 Kudos

I tried all the possible interpolation mode. I can see differences between each mode but the quality stay poor on the images.

I can't see differences on the tollbar icons

DonWilliams
Active Contributor
0 Kudos

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

fabriziocs
Explorer
0 Kudos

Sure, here the image 00018681.jpg