A fatal exception encountered when using reportviewer to browse rdlc reports in winform

Source: Internet
Author: User
When reporting service 2000 was used in the past, due to the need to process reports in multiple languages, a problem was found. If a Chinese report is exported to PDF, garbled characters may occur. I will try using Reporting Service 2005 to see if the problem has been resolved. I used the rdlc report template provided by reporting service 2005. In winform, I used reportviewer to browse the report (the report contains Chinese characters). The report was browsed normally and everything was normal when it was exported to excel, when exporting data to a PDF file, an exception is reported. The exception information is as follows:
Pinvokestackimbalance was detected.
For the pinvoke function "Microsoft. reportviewer. Common! The call of Microsoft. reportingservices. Rendering. imagerenderer. compositionpdf + windowsgdiwrapper: getglyphindicesw leads to stack asymmetry. The reason may be that the hosted pinvoke signature does not match the non-hosted target signature. Check whether the call conventions and parameters of the pinvoke signature match the non-hosted target signature.

This exception should be caused by the reportviewer control. I mistakenly thought it was a problem with Reporting Service 2005.
Sorry.

[Later, I directly created an rdlc template and browsed and exported it. Chinese garbled characters still exist. It seems that exporting Chinese reports to PDF is still a little troublesome.]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.