How to save Spire.doc file to custom location in "Java"

546 Views Asked by At

I am working on printing project. I am using Spire.doc package to write docx file but I don't know how to save that file to different location

doc.saveToFile(filename, fileFormat.Docx_2013);

Thank you in advance

1

There are 1 best solutions below

0
On
doc.saveToFile("C:\\Users\\"  + System.getProperty("user.name"+ filename, FileFormat.Docx_2013);