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.

Fri Mar 25, 2022 9:12 am

Hi All,

Good day!

Got this error during the conversion from Doc to PDF using SSIS script. Hope someone could help us.

2022-03-24 9:21:04 PM System Message: Group code is 00313035 . . .
2022-03-24 9:21:04 PM Error Message:Unable to cast object of type 'Spire.Doc.Documents.Paragraph' to type 'Spire.Doc.Fields.ShapeObject'.

Thank you very much!

Best regards,

pcphspiredoc
 
Posts: 1
Joined: Thu Mar 03, 2022 10:45 am

Fri Mar 25, 2022 9:39 am

Hello,

Thank you for your inquiry.
To help us investigate your issue quickly and efficiently, please provide the following information. You could attach them here or send them to us via email (support@e-iceblue.com). Thanks in advance.
1) Your input Word file.
2) Your complete test code.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1648
Joined: Wed Apr 07, 2021 2:50 am

Fri Apr 01, 2022 1:57 am

Hello,

Thanks for sharing the information via email.
Since I did not receive the source word file and the resulting PDF file you provided, I simulated a word file and did an initial test, but did not reproduce your issue. For converting word to PDF, we also provide a new engine method, the sample code is as follows:
Code: Select all
Spire.Doc.Document document = new Spire.Doc.Document();
document.LoadFromFile(sourcePath, Spire.Doc.FileFormat.Auto);
document.UseNewEngine = true;
document.SaveToFile(file, Spire.Doc.FileFormat.PDF);

Please try the above method. If the issue still exists after trying, please provide your source word file for us to investigate further. Thanks in advance.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1648
Joined: Wed Apr 07, 2021 2:50 am

Return to Spire.Doc