cancel
Showing results for 
Search instead for 
Did you mean: 

Windows11 22H2のVisualStudio2019において、ビットマップ画像をCristalReortsに張り付け時、画像の白い部分が黒に変わってしまう。

nakamasa04
Discoverer
0 Kudos
1,450

Windows11 22H2のVisualStudio2019にCristalReportsファイルを挿入し、左記ファイルに画像を挿入後、プレビュー画面を開くと、画像の白い部分が黒に変わってしまいます。

また、上記状態で印刷をすると、プレビュー画面のとおり(画像の白い部分が黒)に印刷されてしまいます。

※上記画像ファイルとは、.Net Framework4.8のBitmapクラス、GraphicsクラスのCopyFromScreenを使った画面キャプチャーです。

解決方法をご存じないでしょうか。

上記事象ですが、

Windows11の21H2では発生しません。(Windows11 22H2で発生)

マイクロソフト社にも問合せを行い、Windows11の22H2、21H2で出力した上記画像に差分が無いことを確認しております。

検証したCrystalReportsのバージョンはCrystal Report for Visual Studio 2019で、サービスパックは以下となります。

サービスパック31 CR for Visual Studio SP31 install package

 サービスパック32(OLEFixパッチ適用済) CR for Visual Studio SP32 32b installer (VS 2019 and below)

 サービスパック33(OLEFixパッチ適用済) CR for Visual Studio SP33 32b installer (VS 2019 and below)

※上記いずれの場合も、画像の白い部分が黒に変わってしまいます。

AlexGourdet
Product and Topic Expert
Product and Topic Expert
0 Kudos

Thank you for visiting SAP Community to get answers to your questions.

As you're looking to get most out of your community membership, please consider include a profile picture to increase user engagement & additional resources to your reference that can really benefit you:

I hope you find this advice useful, and we're happy to have you as part of SAP Community!

All the best,

Alex

Accepted Solutions (1)

Accepted Solutions (1)

nakamasa04
Discoverer
0 Kudos

I would like to report that the issue was resolved after changing the CrystalReports report options.

Optional: Keep original color depth of image

Before: OFF

After: ON

Thank you for your cooperation!!!

Answers (3)

Answers (3)

DonWilliams
Active Contributor
0 Kudos

I had R&D test using the same versions and it's working fine for them...

This is an old post but may help you:

https://answers.sap.com/questions/10680456/png-picture-transparent-background-become-black-in.html

Don

DonWilliams
Active Contributor
0 Kudos

I'll get R&D to look at your post and see if they can duplicate the issue:

In VisualStudio2019 on Windows11 22H2, when pasting a bitmap image to CristalReorts, the white part of the image turns black.

After inserting a CrystalReports file into VisualStudio2019 on Windows11 22H2 and inserting an image into the file on the left, when I open the preview screen, the white part of the image turns black.

Also, if you print in the above state, it will be printed as shown in the preview screen (white parts of the image are black).

* The above image file is a screen capture using CopyFromScreen of Bitmap class and Graphics class of .Net Framework 4.8.

Do you know how to solve this?

Although the above event

It does not occur on Windows 11 21H2. (Occurs on Windows11 22H2)

We have also contacted Microsoft and confirmed that there is no difference in the above images output on Windows 11 22H2 and 21H2.

The version of CrystalReports verified is Crystal Report for Visual Studio 2019, and the service pack is as follows.

Service Pack 31 CR for Visual Studio SP31 install package

Service Pack 32 (OLEFix patch applied)CR for Visual Studio SP32 32b installer (VS 2019 and below)

Service Pack 33 (OLEFix patch applied)CR for Visual Studio SP33 32b installer (VS 2019 and below)

*In any of the above cases, the white part of the image will turn black.

nakamasa04
Discoverer
0 Kudos

thank you for your reply.

Thank you for requesting R&D!

I also understand that it is not reproducible. Sorry for not being able to upload the image due to compliance issues.

DonWilliams
Active Contributor
0 Kudos
Windows 11 requires the following:Platform support: Win 11 21H2 - Check KBA 3204578 for a Windows 11 specific OLE image issue and workaround.Not clear about the versions you listed, See the Platform info for supported OS's:https://www.sap.com/documents/2016/06/f871031e-757c-0010-82c7-eda71af511fa.html
nakamasa04
Discoverer
0 Kudos

Thank you for your reply.

KBA 3204578 has already been applied, but the above phenomenon has occurred.