locked
Crystal Report Printer name value passing through label RRS feed

  • Question

  • User1152553138 posted
    Instead of hard coding printer name directly in program. I would like to pass label value.
    
    This is the code:-
    
    reportDocument.PrintOptions.PrinterName = “HP LaserJet 1020”;
    
    Instead of above printer name, I would like o pass label value like below
    
    reportDocument.PrintOptions.PrinterName = LblPrinter.Text;
    

    Thursday, January 17, 2013 7:42 AM

All replies

  • User-929656654 posted

    If reportDocument.PrintOptions.PrinterName = HP LaserJet 1020”; works, then your LblPrinter.Text; Assignment should also work. What is the problem that you are facing?


    Thursday, January 17, 2013 8:10 AM
  • User1152553138 posted

    Am getting error:-

    Invalid Printer specified.


    Thursday, January 17, 2013 9:33 AM