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.

Wed Jun 22, 2022 11:52 am

Dear,

If i use Spire.DOC and Spire.Presentation in the same application (nugets package), i receive an error with Spire.Presentation during the creation of the object:
try
{
Spire.Presentation.Presentation _presentation = new(); \\-> ERROR HERE
_presentation.LoadFromFile(@"e:\test1.pptx");
_presentation.SaveToFile(@"e:\test1.pdf", Spire.Presentation.FileFormat.PDF);
_presentation.Dispose();

}
catch (Exception ex)
{
string _s = ex.Message;
}

The error is:
System.MissingMethodException
HResult=0x80131513
Message=Method not found: 'spr㋽ spr㋽.ᜂ(System.IO.Stream)'.
Source=Spire.Presentation
Arborescence des appels de procédure :
à sprᝪ.ᜀ(String A_0)
à spr᝚..ctor(sprᩓ A_0)
à Spire.Presentation.Presentation..ctor()

This problem occurs ONLY with version of Spire.Doc 10.5.9 and upper, if i use Spire.Doc 10.4.6, it works normally.

Any idea?

jcq
 
Posts: 2
Joined: Tue Oct 16, 2012 10:19 am

Thu Jun 23, 2022 3:01 am

Hi,

Thank you for your inquiry.
Kindly note the Spire.Doc and Spire.Presentation are two independent products, they can't be used together in a same project due to the incompatible. For your case, please remove all spire dlls from your project and install the Spire.Office from Nuget (https://www.nuget.org/packages/Spire.Office/7.5.4), in which all dlls are compatible. If there is still any question, please feel free to contact us.

Sincerely,
Kylie
E-iceblue support team
User avatar

kylie.tian
 
Posts: 412
Joined: Mon Mar 07, 2022 2:30 am

Thu Jun 23, 2022 9:16 am

Hi,

Thank you for the information, using the Spire.Office solves the problem.

Regards,
jc

jcq
 
Posts: 2
Joined: Tue Oct 16, 2012 10:19 am

Thu Jun 23, 2022 9:44 am

Hi,

Glad to hear that! If you need assistance in the future, please don't hesitate to contact us.
Wish you a nice day :D

Sincerely,
Kylie
E-iceblue support team
User avatar

kylie.tian
 
Posts: 412
Joined: Mon Mar 07, 2022 2:30 am

Return to Spire.Doc