Results 1 to 7 of 7

Thread: [RESOLVED] Printer.PrintAction

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2005
    Posts
    558

    Resolved [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)

  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Posts
    24,482

    Re: Printer.PrintAction

    It isn't very useful to read VB.Net documentation.

  3. #3
    PowerPoster SamOscarBrown's Avatar
    Join Date
    Aug 2012
    Location
    NC, USA
    Posts
    9,149

    Re: Printer.PrintAction

    Quote Originally Posted by dilettante View Post
    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).

  4. #4
    Smooth Moperator techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,532

    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
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2005
    Posts
    558

    Re: Printer.PrintAction

    Quote Originally Posted by dilettante View Post
    It isn't very useful to read VB.Net documentation.
    D'oh! Thanks. Thread Closed.

  6. #6
    PowerPoster
    Join Date
    Feb 2006
    Posts
    24,482

    Re: [RESOLVED] Printer.PrintAction

    ... and Visual Fred claims another innocent victim.

  7. #7
    PowerPoster
    Join Date
    Feb 2017
    Posts
    5,000

    Re: [RESOLVED] Printer.PrintAction

    Quote Originally Posted by Darkbob View Post
    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
  •  



Click Here to Expand Forum to Full Width