Japanese Characters get lost

Last post 05-03-2011, 6:32 AM by alexey.noskov. 6 replies.
Sort Posts: Previous Next
  •  05-02-2011, 12:20 PM 300875

    Japanese Characters get lost .NET

    I am trying to open word document and use mail merge feature to replace dynamic contents.

    The document (cover letter) content can be in English, Chinese, German, Japanese....

    Once the document content is replaced, I try to save the document into PDF and save. English and German content are working fine. Somehow Japanese characters are getting lost and don't get printed. I have not tried Chinese and other languages.

    I am using Apsose.words 2.0 and Aspose.pf 2.0

    Is there a fix in higher version of Aspose? to support other multipbyte languages?

    Thanks for your help in advance.

    Note:

    I found thread for chinese characters having issue....

    http://www.aspose.com/community/forums/thread/289103.aspx

     

    Filed under: Aspose Words PDF
     
  •  05-02-2011, 1:54 PM 300891 in reply to 300875

    Re: Japanese Characters get lost

    Hi

     

    Thanks for your request. Which version of Aspose.Words do you use? Also, please attach your template, output PDF and simple code that will allow me to reproduce the problem on my side. I will check the issue and provide you more information.

     

    Best regards, 


    Alexey Noskov
    Developer/Technical Support
    Aspose Auckland Team
     
  •  05-02-2011, 2:37 PM 300901 in reply to 300891

    Re: Japanese Characters get lost

    ************************************************************************* CoverLetterType.doc ************************************************************************* «ResponseDate» [氏名] «FullName» «ToCompanyName» «ToAddress» 件名:品質に関する懸念事項、リクエスト番号«RequestNumber» この度は、弊社製品についてご意見をお寄せいただき、誠にありがとうございます。ABC XYZは常に、安全かつ効率に優れ、品質の高い製品をお客様にお届けすることを目指しております。 «FullDate»にお問い合わせいただいた懸念事項につきましては、弊社の品質システムに登録いたしました(リクエスト番号«RequestNumber»)。 また、抑制に関する(15D)弊社の初期回答を同封いたしましたので、ご確認ください。 «RespondersFullName» «Title» «BuisnessUnit» «FromCompanyName» «Phone» «email» ************************************************************************* Code ************************************************************************* Based on license .lic file it shows version as 2.0 with subscription expiry of 19971019. Dim doc As New Aspose.Words.Document(CoverLetterType) Dim docWord As DocumentBuilder = New DocumentBuilder(doc) DocumentStandardCoverLetter(doc, intRequestType, RespInfo, ContactInfo, BuildingInfo) Public Sub DocumentStandardCoverLetter(ByRef doc As Aspose.Words.Document, ByRef reqType As Integer, ByRef RespInfo As Collection, ByRef ContactInfo As Collection, ByRef BuildingInfo As DataRow) Dim dtMailMerge As New DataTable Dim dr As DataRow Dim FromCompanyName As DataColumn = New DataColumn("FromCompanyName") FromCompanyName.DataType = System.Type.GetType("System.String") dtMailMerge.Columns.Add(FromCompanyName) Dim FromAddress As DataColumn = New DataColumn("FromAddress") FromAddress.DataType = System.Type.GetType("System.String") dtMailMerge.Columns.Add(FromAddress) Dim ResponseDate As DataColumn = New DataColumn("ResponseDate") ResponseDate.DataType = System.Type.GetType("System.String") dtMailMerge.Columns.Add(ResponseDate) ..... ..... ..... dtMailMerge.Rows.Add(dr) dtMailMerge.AcceptChanges() doc.MailMerge.Execute(dtMailMerge) End Sub strFileExtension = "pdf" doc.Save(Server.MapPath("export\working\") & tmpFileName & ".xml", SaveFormat.AsposePdf) Dim pdf As Aspose.Pdf.Pdf = New Aspose.Pdf.Pdf 'Use font cache to improve the performance pdf.IsTruetypeFontMapCached = True pdf.TruetypeFontMapPath = Server.MapPath("export\working\") pdf.IsImagesInXmlDeleteNeeded = True pdf.BindXML(Server.MapPath("export\working\") & tmpFileName & ".xml", Nothing) pdf.Save(strTempPath & tmpFileName & "." & strFileExtension) ' remove temporary file File.Delete(Server.MapPath("export\working\") & tmpFileName & ".xml")
     
  •  05-02-2011, 3:02 PM 300907 in reply to 300901

    Re: Japanese Characters get lost

    Hi

     

    Thank you for additional information. But could you please attach the document file? Sometimes it is impossible to reproduce the problem without the original document. And please attach your output PDF document.

     

    Best regards,


    Alexey Noskov
    Developer/Technical Support
    Aspose Auckland Team
     
  •  05-02-2011, 3:26 PM 300912 in reply to 300907

    Re: Japanese Characters get lost

    Attachment: Present (inaccessible)

    Please find required input doc.

    I am trying to generate output do with test data.

    Will upload soon.

    dont want to add prod data

     

     
  •  05-02-2011, 3:56 PM 300913 in reply to 300912

    Re: Japanese Characters get lost

    Attachment: Present (inaccessible)

    Please find required output.

     

    It only prints characters which are in English

     
  •  05-03-2011, 6:32 AM 301013 in reply to 300913

    Re: Japanese Characters get lost

    Hi

     

    Thank you for additional information. But I am afraid, I cannot reproduce the problem on my side. I used the latest version of Aspose.Words for testing. You can download it from here:

    http://www.aspose.com/community/files/51/.net-components/aspose.words-for-.net/category1188.aspx

     

    Here you can find a code example I used:

    http://www.aspose.com/documentation/.net-components/aspose.words-for-.net/howto-convert-a-document-to-pdf.html

     

    Best regards,


    Alexey Noskov
    Developer/Technical Support
    Aspose Auckland Team
     
View as RSS news feed in XML