Discussion: Using PrintDialog() in Console Application
In the previous quiz, Online C#.NET Quiz, we tested our experience gained from the course.

Member

7 messages from 7 displayed.
//= Settings::TRACKING_CODE_B ?> //= Settings::TRACKING_CODE ?>
In the previous quiz, Online C#.NET Quiz, we tested our experience gained from the course.
What data do you need to pass from the printer dialog?
As you say, I'd really rather try forms and the PrintDialog class https://msdn.microsoft.com/…vs.110).aspx?….
You can find your problem solved here: https://social.msdn.microsoft.com/…ific-printer?…
Usage of the PrintDialog class:
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim psi As New ProcessStartInfo
psi.UseShellExecute = True
psi.Verb = "print"
psi.WindowStyle = ProcessWindowStyle.Hidden
psi.Arguments = PrintDialog1.PrinterSettings.PrinterName.ToString()' Here specify printer name
psi.FileName = "C:\MyFile.doc" ' Here specify a document to be printed
Process.Start(psi)
End Sub
End Class
I want all the contents in my folder (which may or may not be read into a stream) to get printed with one print setting for all of them. Hence, I want to pass the contents of the folder to a printdialog().
Worst case scenario I can print it to the file system, but this limits how the files will be outputted.
I can get everything read into a stream(if needed) etc, my issue has been wrapping my set of files/loop inside one instance of a printdialog()
Yes, I understand. But the way you're doing it is just wrong IMHO. Just invest some of your time and learn how to do forms. Printing is then quite easy. There are PrintDialog and PrintDocument classes for that.
I feel really very happy to have seen your this post and look forward to read so many more interesting post here.
Interesting article, need pay someone to do my essay ?! Every essay writer on the team is a real expert. Give us any topic in any of the 25+ subject fields that we cover, including MBA, History, Literature, Nursing, and Education.
You can simplify writing a resume simply by hiring a topresume review, in addition to tips on writing a resume, there are also creative professional resumes, which is very good for those who need a resume
7 messages from 7 displayed.