Printing on client using a web application, written in vb.net

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jan 2008
Posts: 7
Reputation: jochem23 is an unknown quantity at this point 
Solved Threads: 0
jochem23 jochem23 is offline Offline
Newbie Poster

Printing on client using a web application, written in vb.net

 
0
  #1
Jan 2nd, 2008
Hello,

I have a problem and i'm not sure if the solution i have is the only way to solve it.

I'm trying to developing a webapplication in vb.net which enables users to print documents on their own pc. It should do some more stuff on the client (provide ATM/PIN functionality) but printing has the focus for now.

Is there anybody out there who can tell me how to do this. I've heard that writing an activeX component is ONE solution but I want to know if there's another way. And, if not, maybe somebody can provide some usefull links regarding activeX printing capabilities.

Thanks in advance
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 898
Reputation: Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light 
Solved Threads: 26
Moderator
Tekmaven's Avatar
Tekmaven Tekmaven is offline Offline
The C# Man, Myth, Legend

Re: Printing on client using a web application, written in vb.net

 
0
  #2
Jan 3rd, 2008
Well, you can just output printer friendly HTML pages, but this won't allow you to control 100% of the paper output (the brower will put the url, page number, title, etc on the header/footer).

Another interesting route other then ActiveX, is a Windows Forms application with ClickOnce deployment. The user would then click a link on a webpage which launches the ClickOnce deployment (which downloads the application and then runs it). I believe this can even run under a standard user (non-admin) account. Since this would be a standard VB.NET Windows Forms project, you have full printer output capabilities.
-Ryan Hoffman

.NET Specialist / Webmaster, Extended64.com.
Please do not email or PM me with support questions. Please direct them to the forums instead.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 7
Reputation: jochem23 is an unknown quantity at this point 
Solved Threads: 0
jochem23 jochem23 is offline Offline
Newbie Poster

Re: Printing on client using a web application, written in vb.net

 
0
  #3
Jan 4th, 2008
Thanks for your reply! I'm pretty new at VB.net so do you perhaps have some links or codesamples to explain how i can do this? Coding needs to be done in VB.Net ...
Last edited by jochem23; Jan 4th, 2008 at 6:59 am.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 39
Reputation: btech_Saurabh is an unknown quantity at this point 
Solved Threads: 2
btech_Saurabh's Avatar
btech_Saurabh btech_Saurabh is offline Offline
Light Poster

Re: Printing on client using a web application, written in vb.net

 
0
  #4
Jan 4th, 2008
if u want to use the.....JavaScript in ur App.....then its very simple to.....Print ....

u can use Window.Print()
it definite works....
Enjoy....
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 7
Reputation: jochem23 is an unknown quantity at this point 
Solved Threads: 0
jochem23 jochem23 is offline Offline
Newbie Poster

Re: Printing on client using a web application, written in vb.net

 
0
  #5
Jan 14th, 2008
Duh, i'd figured that out allready... But using javascript print method means getting that ugly print dialog screen, which i don't want.

My application has to automatically print a receipt on the printer of the user logged in (CLIENT-SIDE), WITHOUT user intervention.

Using activex means that the user gets a securitymessage. This is acceptable if this only occurs once. Can anybody tell me if this is true or not.
Reply With Quote Quick reply to this message  
Join Date: Apr 2007
Posts: 437
Reputation: Fungus1487 is on a distinguished road 
Solved Threads: 50
Fungus1487's Avatar
Fungus1487 Fungus1487 is offline Offline
Posting Pro in Training

Re: Printing on client using a web application, written in vb.net

 
0
  #6
Jan 14th, 2008
Duh, i'd figured that out allready... But using javascript print method means getting that ugly print dialog screen, which i don't want.
without this you are breaking standard conventions and may confuse users more.
When Autumn Falls [ http://www.whenautumnfalls.co.uk ] &&
Designdotworks [ http://www.designdotworks.co.uk ] Web / Graphic / Software Design
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 1,080
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Solved Threads: 68
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: Printing on client using a web application, written in vb.net

 
0
  #7
Jan 15th, 2008
those are usually settings on the user's computer anyway. only way to bypass it is to have your own client-side program that they download first, then run the program which prints the document just how tekmaven said. The problem you face here is that most people won't run an unaccredited program especially designed by a user without a license. Otherwise, the only successful way of doing it is hacking the computer automatically, which you don't want to do.. ha.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the ASP.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC