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
Re: Problem in printing to HP Laserjet
You need to change the status from Manual Feed to Automatic Feed.
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
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?
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....
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
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
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