1
Answer

Print Preview a String

Michael

Michael

16y
2k
1
I need a simple way to just send a string to the Print Preview document. I don't care about fonds, sizes, any of that. I just want to send vanilla text to a print preview window.

I have this:
Dim printPreviewDialog1 As New PrintPreviewDialog() ' instantiate new print preview dialog
printPreviewDialog1.Document = PrintMeString
printPreviewDialog1.ShowDialog() ' Show the print preview dialog


Which is wrong, because PrintMeString is a String. Everything I found online is way too complictaed for what I want  to do. Any ideas?
Answers (1)