How to print a flat file in ASP.NET 2.0

G

Guest

I need to print a flat file or send printer controls to a specified printer
or port (lpt1,lpt2, com1...) in a web page.
Is it possible? How?

Thanks for the help
 
N

Nicholas Paldino [.NET/C# MVP]

JLobo,

Unless you are going to embed a control in the page and get the
appropriate permissions from the user, you aren't going to be able to do
this.
 
G

Guest

Ok! How can i get some help about the steps i need?
I already read this article http://support.microsoft.com/?kbid=322091 but
this is for windows forms and i am working with web forms!

--
JLobo


Nicholas Paldino said:
JLobo,

Unless you are going to embed a control in the page and get the
appropriate permissions from the user, you aren't going to be able to do
this.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

JLobo said:
I need to print a flat file or send printer controls to a specified printer
or port (lpt1,lpt2, com1...) in a web page.
Is it possible? How?

Thanks for the help
 
M

Mark Rae [MVP]

I need to print a flat file or send printer controls to a specified printer
or port (lpt1,lpt2, com1...) in a web page.

Firstly, you need to understand that Internet browsers (e.g. IE, FireFox,
Opera, Netscape) are designed specifically to prevent this sort of
behaviour, for fairly obvious security reasons...

In order to achieve what you are looking for, you would need to write some
sort of client-side ActiveX control (or Java applet if you need
cross-browser compatibility). However, this would mean you'd have to
compromise your browser's security settings...

I would strongly advise you not to find another method of achieving what you
need...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top