Hi,
How do I display Excel's print dialog box from c#? I understand that to do it in VBA I use the code:
But I cannot do the same thing in c# it seems. Have I maybe got the syntax wrong, or do I need to include a directive. The error message is that xlDialogPrint does not exist in the class or namespace ...
Ideally I was hoping to show and get the result of this dialog box, so I can keep note of anything that has been printed. Obviously the most intuitive method is to use the dialog boxes that everyone is familiar with.
Any suggestions?
How do I display Excel's print dialog box from c#? I understand that to do it in VBA I use the code:
Code:
excel.Dialogs(xlDialogPrint).Show();
But I cannot do the same thing in c# it seems. Have I maybe got the syntax wrong, or do I need to include a directive. The error message is that xlDialogPrint does not exist in the class or namespace ...
Ideally I was hoping to show and get the result of this dialog box, so I can keep note of anything that has been printed. Obviously the most intuitive method is to use the dialog boxes that everyone is familiar with.
Any suggestions?