Results 1 to 4 of 4

Thread: print dialog box ?

  1. #1

    Thread Starter
    New Member pari's Avatar
    Join Date
    Dec 2001
    Location
    on earth
    Posts
    13

    Exclamation print dialog box ?

    Hello All,
    can anyone tell me how to provide a windows printing Dialog Box for printing a crystal report thru coding?
    thanks in Advance!
    Pari

  2. #2
    Hyperactive Member gravyboy's Avatar
    Join Date
    Jan 2000
    Location
    Where I was before . . . if you don't know then you're new!
    Posts
    334
    VB Code:
    1. CommonDialog1.ShowPrinter
    2.  
    3.     Printer.Print "TEST PRINT"
    4.     Printer.Print "DeviceName = " & Printer.DeviceName
    5.     Printer.EndDoc

    This moves the default printer though so you would be wise to add a variable to store the original printer.devicename and then reset after the .enddoc.
    Matt G
    VS6 Ent SP5 @ Work
    VS6 Ent SP5 & VB.Net @ Home
    [email protected]



  3. #3
    Hyperactive Member SjR's Avatar
    Join Date
    Jul 2001
    Location
    Birmingham, UK
    Posts
    336
    Same control as with an Open or Save As dialog box...
    Select Microsoft Common dialog Control in 'Components'
    VB Code:
    1. Dialog1.ShowPrinter
    Another satisfied customer

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    Have you tried compiling the report, and then useing Shell to execute it?

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