on 2023 Mar 10 3:46 PM
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)
※上記いずれの場合も、画像の白い部分が黒に変わってしまいます。
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!!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
67 | |
8 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.