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.

Mon Jun 30, 2014 11:20 am

Hi,

How would I once the document is saved open the document to appear on the screen.
Also how would i send the document to print.

Can these two lines of code be converted?
WordDestinationObject.ApplicationVisible = True
WordSourceObject.CloseWord()

stevenheggie
 
Posts: 60
Joined: Tue Jun 24, 2014 10:32 am

Tue Jul 01, 2014 4:00 am

Hello,

Thanks for your inquiry.
Regarding WordDestinationObject.ApplicationVisible = True, please try the following code, and you can also our Spire.DocViewerto view the document.
Code: Select all
System.Diagnostics.Process.Start(WordDestinationObject);

Regarding WordSourceObject.CloseWord(), please try the following code.
Code: Select all
document.close()

The following method guides you to how to print the document with our product.
Code: Select all
Document document = new Document();
document.LoadFromFile("Microsoft Word Document.docx");
PrintDialog dialog = new PrintDialog();
document.PrintDialog = dialog;
PrintDocument printDoc = document.PrintDocument;
printDoc.Print();

If there are any questions, welcome to get it back to us.
Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Fri Jul 04, 2014 9:17 am

Hello,

Do these codes fulfill your needs? Could you please give us some feedback if convenience? If not, please provide us the document and describe what you manage to implement, and we can provide you the corresponding solution.
Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Mon Jul 21, 2014 2:17 pm

Hi,

Thanks for that sorry for late reply. That is the code i need many thanks.

stevenheggie
 
Posts: 60
Joined: Tue Jun 24, 2014 10:32 am

Thu Jul 24, 2014 1:52 am

Hello,

Thanks for your feedback.
If there are any questions, welcome to get it back to us.
Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Return to Spire.Doc

cron