Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

print option!! help!! privilege required?? urgent

Status
Not open for further replies.

krish1980

Programmer
Feb 27, 2002
20
US
friends,
i'm trying to print document. i'm writing this thread to draw fresh attention(urgent). i used window.print() to print. but it displays error message saying "u do not have permissons to use the selected the printer.contact administrator" . but i'm logged in as administrator while using that. i'm using a network printer for testing purposes.

thanks.
s.krish Krishnamoorthy
krish1980@rediffmail.com
 
This code will display a link on the page saying PRINT.
Clicking on the link will print the current page in IE5+/netscape.

<a href=&quot;javascript:window.print()&quot;>PRINT</a>

As for your permission problems, it shouldn't matter if you are logged in as Administrator or not, because you are accessing the html page as a web user.

Are you able to use the File/Print function of your browser without getting the same error?
Brett Birkett B.Comp
Systems Analyst
 
thanks mr.brikkett,
but i'm not able to use the file/print option as well. it is firing the same error. think ur code will work perfectly if this is sorted out. by the way how to print the document by writing to another html.
thanks
s.krish Krishnamoorthy
krish1980@rediffmail.com
 
I had a feeling it was a printer permissions problem. You are right... sort out your permissions problem, and the code will work just fine.

I'm not sure I understand what you mean by writing to another html?? You want to print the contents of the page into a file instead of to the printer? Brett Birkett B.Comp
Systems Analyst
 
hello Mr. Birkett,
thanks. yes i want to write the contents to a html file in a more legible & black & white printable format before printing that html file.
i've sorted out this problem of print permissions.
thanks,
s.krish Krishnamoorthy
krish1980@rediffmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top