Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Thu Sep 28, 2017 9:49 am

Hi,

Thanks for patient waiting.
Now the conversion issue on Azure has been fixed. Please use the latest Spire.Doc Pack(hot fix) Version:6.0.8 and PS method to have a try.
Code: Select all
    Document doc = new Document();
      doc.LoadFromFile(filename);
      ToPdfParameterList tpl = new ToPdfParameterList
            {
                UsePSCoversion = true                         
            };
       doc.SaveToFile(resultname, tpl);

If you have any issue, please feel free to contact us.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Wed Jul 25, 2018 11:29 am

Hi, I'm using spire.doc version 6.7.13
When I generate a pdf document through the SaveToStream function.

It generates the following error:

[NullReferenceException: Object reference not set to an instance of an object.]
spr᭤.ᜄ() +698
spr᭤.ᜂ(Boolean A_0) +67
spr᭤.ᜀ(RectangleF& A_0, RectangleF& A_1, Int32& A_2, Boolean& A_3, Boolean A_4) +781
sprἶ.ᜀ(sprᠤ A_0, spr➣ A_1, spr᪻ A_2) +518
spr᭤.ᜒ() +98
spr᭤.ᜓ() +624
spr᭤.ᜁ(IDocument A_0) +294
spr⒅.ᜀ(Document A_0) +106
Spire.Doc.Document.ᜁ(Stream A_0) +99
Spire.Doc.Document.SaveToFile(Stream stream, FileFormat fileFormat) +140
Spire.Doc.Document.SaveToStream(Stream stream, FileFormat fileFormat) +47

On the other hand, when I perform the same operation and generate the document in word, it works correctly.

Thanks for help you.

drag_des
 
Posts: 1
Joined: Wed Jul 25, 2018 11:18 am

Thu Jul 26, 2018 1:45 am

Hello drag_des,
 
Thank you for your inquiry.
To help us look into it, could you please share your sample Word document with us?
 
Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Fri Jul 27, 2018 7:07 am

Hi drag_des,

Thanks for your information via email.
Did you deploy your project on Azure ?
I tested your case both in local and Azure, but didn’t encounter the issue you mentioned.
Could you please provide us with following information so that we could reproduce your issue on our side ?
1. The full code you were using, better to provide a sample project which shows your issue.
2. The OS and Region information, e.g. Win7 64bit, China/Chinese
Thanks in advance.
Sincerely,
Hogan
E-iceblue support team
User avatar

hogan.tang
 
Posts: 51
Joined: Tue Jul 03, 2018 1:43 am

Fri Dec 14, 2018 12:41 pm

System.IO.File.WriteAllText(AppDomain.CurrentDomain.BaseDirectory + @"Store\TestHtml.html", htmlBody);



FileStream to_strem = new FileStream(AppDomain.CurrentDomain.BaseDirectory + @"Store\TestHtml.html", FileMode.Open);

try
{
using (Spire.Doc.Document document = new Spire.Doc.Document())
{

document.LoadFromStream(to_strem, FileFormat.Auto, Spire.Doc.Documents.XHTMLValidationType.None); //Error Here in LoadFromStream
to_strem.Close();

document.SaveToFile(saveFileDialog1.FileName, Spire.Doc.FileFormat.Doc);
}
}
catch(Exception ex)
{
//It goes Here saying Taget error for Spire.Doc.Wpf as "object reference null exception"
}

yogesh12345
 
Posts: 1
Joined: Fri Dec 14, 2018 11:18 am

Mon Dec 17, 2018 3:38 am

Hi yogesh12345,

Thanks for your inquiry.
To help us investigate further, please share your input file here or send it to us(support@e-iceblue.com) via email.

Thanks,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.Doc