We have a Word document which has macros. When we run macros on our original document there is no problem but when we save it with aspose Word it shows an error. Macro password is 6414424. I attached original document, faulty file and error message.
Thanks for your inquiry. The macro in your document tries to connect SQL Server. We have tested the scenario and have not found the shared issue. Please try the latest version of Aspose.Words for .NET 18.10 and let us know how it goes on your side. Hope this helps you.
We have attached the output DOC file with this post for your kind reference. 18.10.zip (76.2 KB)
Thanks for your inquiry. We have tested the scenario using following code example. We have opened the “18.10.doc” in MS Word and run the macro “Grafik”. Please check the attached image for output. Please try the latest version of Aspose.Words for .NET 18.10 and let us know how it goes on your side. We have attached the output DOC with this post for your kind reference. 18.10.zip (56.1 KB)
Thanks for sharing the detail. Please note that Aspose.Words does nothing with macros while re-saving document. We have opened the document “SB.053_0.doc” in MS Word 2016, edit the macro (Grafik) and faced the same issue. This issue is with your input document. Please check the attached image for detail.
Please close all Word documents and open only “SB.053_0.doc”. Execute the macro to see this issue.
I attached test Project for you again. You can download following link http://dm.bimser.com.tr/eba.net/Default.aspx?turl=n4cwZ9NmFku2rNLS6eKYCQ
In the Project folder you can see original file which has not error(filename:SB.053_0.doc). When you run test Project it create corrupted file(filename:SB.053_1.doc) Could you please try again.
Thanks for your inquiry. We have executed the shared .exe file at our end. We have run the macro and have not faced any exception. We have attached the output DOCX generated by your .exe file with this post for your kind reference. SB.053_1.zip (60.4 KB)
You are using Aspose.Words in evaluation mode. We suggest you please get the temporary license from following link and apply it before importing the document into Aspose.Words’ DOM. Get a Temporary License
We have tested the scenario at Windows 10. If you still face problem after applying the license, please share your operating system detail for further testing. Thanks for your cooperation.
We have been checked your file,yes it is fine but when we try to create file on our computer it seems as corrupted. Our application is used on too kind of customer. We can’t decide server version. I think it is not depends on server version. Could you please send us an example code or application or how can we show you our problem? For example Can you connect our pc?
Yes we are using this method but why when you try on your computer your output file is fine and why we try on our computer our output file is corrupted ?.Could you please talk us what kind of property can expose this result?result
Thanks for your inquiry. We have executed the macro at different system and have not found this issue. Could you please download the attached output document and run the macro at some other system at your end? SB.053_1.zip (60.4 KB)
Please also try to re-save the input DOC file using MS Word and run the macro. Please share your findings here for our reference.
Ok when I try file which you send me on my computer or other server it is fine but when I run my app on my computer or other server and create file it is corrupted. I attach my error messageaspose.png (14.8 KB)