Click here to Skip to main content
15,920,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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>


Can anyone help please?

Thanks
Santosh
Posted

1 solution

 
Share this answer
 
Comments
Monjurul Habib 4-Dec-11 13:48pm    
nice links, my 5!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900