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 14, 2017 4:29 pm

Good day:

Please, help me. I have a menssage

"Spire.Doc.Document does not contain a definition of PrintDialog"

This is my code in c#
Spire.Doc.Document doc = new Spire.Doc.Document();
PrintDialog PrintDialog1 = new PrintDialog();
PrintDialog dialog = new PrintDialog();
dialog.AllowPrintToFile = true;
dialog.AllowCurrentPage = true;
dialog.AllowSomePages = true;
dialog.UseEXDialog = true;
doc.PrintDialog = dialog;

Error is on "doc.PrintDialog = dialog;"

My version is 4.0

Thanks

matambo
 
Posts: 1
Joined: Wed Jun 14, 2017 4:19 pm

Thu Jun 15, 2017 1:41 am

Dear matambo,

Thanks for your inquiry.
Sorry that Free Spire.Doc doesn't support print function, and the print function is only supported in commercial version. Please use the lastest commercial Spire.Doc Pack(hot fix) Version:5.9.31 if you need print function.
If there is any question, please let us know.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.Doc