By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,836 Members | 1,983 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,836 IT Pros & Developers. It's quick & easy.

Printing From Server ASP.NET

P: n/a
Printing From Server ASP.NET

Anyone have a good solution for easily printing files of different
types programmically... for example word documents, photoshop psd
files, jpeg's, xls documents, etc...
Is it possible to do this easily?

Nov 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
It's not... sexy... but many application support instant printing via a /p
command line param or via OLE automation. I'd generally avoid this on a
server but if it's an internal app with very low yield, it could do the
trick.
<ry***@ungerboeck.com> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com...
Printing From Server ASP.NET

Anyone have a good solution for easily printing files of different
types programmically... for example word documents, photoshop psd
files, jpeg's, xls documents, etc...
Is it possible to do this easily?

Nov 19 '05 #2

P: n/a
Thanks for the reply. I think I should go a little more in detail about
my problem. I have a .html file and I would like to print it without
using the print dialog box.(i.e. double click on filepath and print
straight to printer) Here is my code thus far:(in vb.net)

Dim p As New Process
Dim FilePath as string

p.StartInfo.FileName = FilePath
p.StartInfo.Verb = "print"
p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden
p.StartInfo.UseShellExecute = True
p.Start()

This Almost does the trick. The problem is that it keeps prompting me
with the print dialog box. Is there a way around this? Maybe I don't
have a property on my machine set correctly? It is probably a simple
solution, any suggestions or insight will be very much appreciated.
Thanks.

Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.