Results 1 to 8 of 8

Thread: Problem in printing to HP Laserjet (Solved)

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2005
    Posts
    105

    Resolved Problem in printing to HP Laserjet (Solved)

    Hi,
    I have a project in VB6 with crystal report 9. When I print a report directly from my project to an HP Laserjet printer the printer become stuck and the red led blink. Now if I press the Go button on the printer it will print the report. My printer is connected on my network by IP. I checked the status of the printer by entering to the IP address (http:\\IP Address). It shows a message: Status: Manual Feed. Press [Enter]
    I checked this with different type of HP Laserjet. And also chceked with all parameters of PaperSource properties for the crystal report object.
    But the result was same. If I print the report from the report viewer it will print normally.
    So hwo can I solve this problem and get the print normally from my project.

    Nasreen
    Last edited by nasreen; Aug 15th, 2008 at 01:12 PM. Reason: Solved

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

    Re: Problem in printing to HP Laserjet

    You need to change the status from Manual Feed to Automatic Feed.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Apr 2005
    Posts
    105

    Re: Problem in printing to HP Laserjet

    Hi Hack
    The status is already in Automatic Feed. And it print normally from all applications like MS Word, Notepad, Internet Expolrer and all. But when I print a crystal report page, it will stuck.

    Nasreen

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

    Re: Problem in printing to HP Laserjet

    Then something inside the report itself is switching the status to Manual Feed. Have you throughly gone through all the potential report settings?

  5. #5
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: Problem in printing to HP Laserjet

    Can I see your code where you are printing the report?

    Also try a direct printing....

    Code:
    Dim crxApp As CRAXDRT.Application 
    Dim crxRpt As CRAXDRT.Report 
    
    Set crxApp = New CRAXDRT.Application 
    Set crxRpt = crxApp.OpenReport("C:\nasreen.rpt") 
    
    crxRpt.PrintOut False, NoCopies
    Does it work?

    Edit: You might have to make necessary amendments in the code above....
    Last edited by Siddharth Rout; Aug 13th, 2008 at 08:50 AM.
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Apr 2005
    Posts
    105

    Re: Problem in printing to HP Laserjet

    hi koolsid

    I alredy use the same code you quoted here and I face this problem for HP lasejet printer

    Nasreen

  7. #7
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Problem in printing to HP Laserjet

    you need to make sure that paper size and type match with the papers loaded in your printer
    for example if your printer is is set with A4 paper but your program is set with letter it will go into manual feed waiting for a sheet of letter to be fed by hand, which will work even if you feed a sheet of A4
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  8. #8

    Thread Starter
    Lively Member
    Join Date
    Apr 2005
    Posts
    105

    Re: Problem in printing to HP Laserjet

    Hi westconn1
    Your are correct, thanks. My problem is solved now. I made modifications according to your adivce and now it is OK
    Thanks once again

    With regards,
    Nasreen

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