Results 1 to 4 of 4

Thread: Printer Selection in Crystal Report 7

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2006
    Posts
    12

    Question Printer Selection in Crystal Report 7

    Dear Members
    i am using crystal report 7
    the problem is this that i have to select the printer From the user,kindly send me any solution.
    Thanks

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Printer Selection in Crystal Report 7

    Welcome to the forums.

    Try this
    VB Code:
    1. Private Sub Command1_Click()
    2.     Dim MyPrinter As Printer
    3.          For Each MyPrinter In Printers
    4.             If MyPrinter.DeviceName = "Printer Name" Then
    5.                 ' Set printer as system default.
    6.                 Set Printer = MyPrinter
    7.                 Exit For
    8.             End If
    9.         Next
    10. End Sub

  3. #3
    PowerPoster Pasvorto's Avatar
    Join Date
    Oct 2002
    Location
    Minnesota, USA
    Posts
    2,951

    Re: Printer Selection in Crystal Report 7

    You can also use the commondialog control. then use..

    CommonDialog1.ShowPrinter

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Printer Selection in Crystal Report 7

    I havent used 7.0, but I do have a CR Print setup example in my signature for 8.5. It uses the SelectPrinter method.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

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