Link to home
Start Free TrialLog in
Avatar of Hares Fak
Hares Fak

asked on

Print Dialogue box using an exe/ Console Application

I need the Print dialog box to show up through a console APP I'm creating ~

I've seen articles mentioning how to do this on a form using:  
If PrintDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
    ' print the document
End If

However this will be a console APP where the user clicks the exe, I want the printer dialogue box to open up, once the user chooses print settings I want all the docs in the folder to be printed. basically I'll be placing the dialogue box code at the top level.

Any ideas on how to do this?
Avatar of it_saige
it_saige
Flag of United States of America image

Console applications don't normally contain any UI elements because they are normally only intended to run at the console level (which has no UI support).  This doesn't mean that you cannot incorporate UI elements into a console application, but if you are going to do this, it would make more sense to create a Form's based application.

-saige-
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.