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

HTTPWebResponse and Printing

P: n/a
I am using VB .Net with HTTPWebRequest/HTTPWebResponse to navigate a
web site and print invoices (not download them - their requirements,
not mine). The related web site, when printing an invoice, modifies the
current HTML that displays the invoice, creates a new window and does a
print.

The corresponding Java script is:

Var THEhtml = '<HTML> \n<HEAD>\n';

<<Massage THEhtml based on existing contents>>

var printMe =
window.open("","printIt","scrollbars,HEIGHT=399,WI DTH=799");
printMe .document.open();
printMe .document.write(THEhtml);
printMe .document.close();
printMe .print

Any suggestions on how to duplicate these procedures in VB to
facilitate a print with the correct appearance? The corresponding
HTTPWebResponse uses a TextReader to obtain the source HTML.

Thanks...

Denny

Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
OK... So I found out that using ProcessStartInfo, the .verb of "print",
the .windowstyle of "hidden", a .filename (of a temporary file),
..UseShellExecute set to true and then doing a process.start will get
the contents printed.

However...now I'm in the often referenced trap of trying to prevent the
print dialog box from showing.

Any suggestions (more investigation on my part to follow)?

Thanks...

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.