使用ReportViewer将泰语字符导出为PDF [英] Exporting thai character to PDF using ReportViewer

查看:84
本文介绍了使用ReportViewer将泰语字符导出为PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



使用报表查看器将报表导出为PDF时遇到问题.问题是我的报表中有泰文字符,我可以完美地查看它,但是当使用报表查看器的导出到PDF功能时,泰文字符无法正确显示.

下面是带有嵌入式泰语字符的RDCL.

Hi,

I am facing problem while exporting report to PDF using report viewer. The problem is that I have Thai character in the report, which I am able to view perfectly, but when export to PDF functionality of the report viewer is used, the thai characters are not displayed correctly.

Below is the attached RDCL with embedded thai characters.

<Report xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner" xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition">
  <Body>
    <ReportItems>
      <Textbox Name="Thai">
        <CanGrow>true</CanGrow>
        <KeepTogether>true</KeepTogether>
        <Paragraphs>
          <Paragraph>
            <TextRuns>
              <TextRun>
                <Value rd:LocID="LocID">=Parameters!Thai.Value</Value>
                <Style>
                  <FontSize>24pt</FontSize>
                  <Language>th-TH</Language>
                </Style>
              </TextRun>
            </TextRuns>
            <Style />
          </Paragraph>
        </Paragraphs>
        <rd:DefaultName>Thai</rd:DefaultName>
        <Top>0.41333in</Top>
        <Left>0.71542in</Left>
        <Height>0.82292in</Height>
        <Width>3.88542in</Width>
        <Style>
          <Border>
            <Style>None</Style>
          </Border>
          <PaddingLeft>2pt</PaddingLeft>
          <PaddingRight>2pt</PaddingRight>
          <PaddingTop>2pt</PaddingTop>
          <PaddingBottom>2pt</PaddingBottom>
        </Style>
      </Textbox>
    </ReportItems>
    <Height>2in</Height>
    <Style />
  </Body>
  <ReportParameters>
    <ReportParameter Name="Thai">
      <DataType>String</DataType>
      <DefaultValue>
        <Values>
          <Value>à¸"ิกชันนารี่</Value>
        </Values>
      </DefaultValue>
      <Prompt>ReportParameter1</Prompt>
    </ReportParameter>
  </ReportParameters>
  <Width>6.5in</Width>
  <Page>
    <LeftMargin>1in</LeftMargin>
    <RightMargin>1in</RightMargin>
    <TopMargin>1in</TopMargin>
    <BottomMargin>1in</BottomMargin>
    <Style />
  </Page>
  <rd:ReportID>1f4964ab-9a2a-4a10-8921-03c7a91915bd</rd:ReportID>
  <rd:ReportUnitType>Inch</rd:ReportUnitType>
</Report>



有人可以帮忙吗?

谢谢
Santosh



Can anyone help please?

Thanks
Santosh

推荐答案

检查这些

将阿拉伯文导出为PDF的问题 [ ^ ]
设计PDF输出 [ Reporting Services 2005现在呈现PDF的方式有所不同! [ ^ ]
Check these

Problem export Arabic to PDF[^]
Designing for PDF Output[^]
Reporting Services 2005 now rendering PDFs differently![^]


这篇关于使用ReportViewer将泰语字符导出为PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆