-
May 2nd, 2022, 09:52 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] Printer.PrintAction
I was reading up on the Printer.PrintAction.PrintToPreview function... amazing! I'd never heard of it! It has a print preview ability? Wow!
But it doesn't work. Any ideas?
Code:
Dim Printer As New Printer
If RadioButton1.Checked = True Then
Printer.PrintAction = Printing.PrintAction.PrintToPrinter
ElseIf RadioButton2.Checked = True Then
Printer.PrintAction = Printing.PrintAction.PrintToPreview
Else
Printer.PrintFileName = _ My.Computer.FileSystem.SpecialDirectories.CurrentUserApplicationData _
& "Form1.eps"
Printer.PrintAction = Printing.PrintAction.PrintToFile
End If
https://docs.microsoft.com/en-us/pre...2726(v=vs.140)
-
May 2nd, 2022, 10:06 AM
#2
Re: Printer.PrintAction
It isn't very useful to read VB.Net documentation.
-
May 2nd, 2022, 01:15 PM
#3
Re: Printer.PrintAction
Originally Posted by dilettante
It isn't very useful to read VB.Net documentation.
...unless.....
you are using VB.Net.
~smile~
Sam I am (as well as Confused at times).
-
May 2nd, 2022, 02:40 PM
#4
Re: Printer.PrintAction
Meanwhle this was posted in the VB6 area... not .NET ... so..... yeah.... gonna need you to fill out the TPS reports by the end of the day.... yeaaaahhh.....
-tg
-
May 2nd, 2022, 03:29 PM
#5
Thread Starter
Fanatic Member
Re: Printer.PrintAction
Originally Posted by dilettante
It isn't very useful to read VB.Net documentation.
D'oh! Thanks. Thread Closed.
-
May 2nd, 2022, 04:25 PM
#6
Re: [RESOLVED] Printer.PrintAction
... and Visual Fred claims another innocent victim.
-
May 2nd, 2022, 08:46 PM
#7
Re: [RESOLVED] Printer.PrintAction
Originally Posted by Darkbob
I was reading up on the Printer.PrintAction.PrintToPreview function... amazing! I'd never heard of it! It has a print preview ability? Wow!
But it doesn't work. Any ideas?
You can now have print preview in VB6, and with backward compatibility using the Printer object.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|