crystal report print-to-printer

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jefer
    New Member
    • Feb 2008
    • 6

    crystal report print-to-printer

    Hello!
    I would like to print a crystal report by using command line
    Code:
    mydoc1.PrintToPrinter(1, False, 1, 2)
    ..but every time the program come to this line, starts doing I don't know what and nothing happens for a long time.
    I set up PrinterOptions. PrinterName to match my printer.
    The same happens if I click the printer icon in printpreview screen, but if I click printer icon under Main Report Preview (when program is stopped) it works OK.
    I would be grateful for any suggestions.
    Jernej
  • alfeena
    New Member
    • Apr 2008
    • 4

    #2
    Originally posted by jefer
    Hello!
    I would like to print a crystal report by using command line
    Code:
    mydoc1.PrintToPrinter(1, False, 1, 2)
    ..but every time the program come to this line, starts doing I don't know what and nothing happens for a long time.
    I set up PrinterOptions. PrinterName to match my printer.
    The same happens if I click the printer icon in printpreview screen, but if I click printer icon under Main Report Preview (when program is stopped) it works OK.
    I would be grateful for any suggestions.
    Jernej
    hi there..wut language r u using..?
    hv u tried checking ur report destination..wh ether it's window(0), printer(1) ...etc

    Comment

    • Tenneyson
      New Member
      • Apr 2008
      • 17

      #3
      Originally posted by jefer
      Hello!
      I would like to print a crystal report by using command line
      Code:
      mydoc1.PrintToPrinter(1, False, 1, 2)
      ..but every time the program come to this line, starts doing I don't know what and nothing happens for a long time.
      I set up PrinterOptions. PrinterName to match my printer.
      The same happens if I click the printer icon in printpreview screen, but if I click printer icon under Main Report Preview (when program is stopped) it works OK.
      I would be grateful for any suggestions.
      Jernej
      Hi there!

      If you are using VB, u may wanna add the following to let your program know that it has finished printing or sending the document

      Code:
      mydoc1.PrintToPrinter(1, False, 1, 2)
      Printer.EndDoc
      Printer.NewPage

      Comment

      Working...