We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose PDF with Words and Cells

Trying to utilize Aspose.Pdf on a page that already has Aspose.Cells and Aspose.Words functioning on it.


Getting the following error:

Compiler Error Message: BC30561: ‘SaveFormat’ is ambiguous, imported from the namespaces or types ‘Aspose.Words, Aspose.Cells’.

On This line:

doc.Save(REPLACE(SavePath,“doc”,“xml”), SaveFormat.AsposePdf)


How can I solve this?

Hi Ryan,

Thanks for your inquiry.

You can reference the fully qualified name of the enumeration to resolve this conflict. For example "SaveFormat" should be "Aspose.Words.SaveFormat".

If you have any further queries, please feel free to ask.

Thanks,