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