Reply
Printing HTML
Old 05-08-2007, 12:56 PM Printing HTML
WebcyteDesign's Avatar
Extreme Talker

Posts: 159
Location: Hamilton
Is there a way to send the formatted HTML to a printDocument?

I need a way to print a formatted HTML document but also I need to auto change it to landscape. I am aware that you can use the webbrowser control and use webbrowser.print or webbrowser.showprintdialog but neither of these automatically allows you to change the orientation to landscape.

So I was thinking if anyone knows of a way to send the HTML pre formatted to a printDocument I'll be able to change the orientation myself.
WebcyteDesign is offline
Reply With Quote
View Public Profile Visit WebcyteDesign's homepage!
 
When You Register, These Ads Go Away!
Old 05-14-2007, 07:17 PM Re: Printing HTML
WebcyteDesign's Avatar
Extreme Talker

Posts: 159
Location: Hamilton
Please, any reply would be nice, even if someone says it's impossible or what the hell am I thinking or advice on where to start. Is there a way to take the html and put it into an RTF or make HTMLDocument convert to a normal document. I have even asked this on Microsoft's forum and they can't answer me.
WebcyteDesign is offline
Reply With Quote
View Public Profile Visit WebcyteDesign's homepage!
 
Old 05-14-2007, 07:21 PM Re: Printing HTML
chrishirst's Avatar
Super Moderator

Posts: 13,519
Location: Blackpool. UK
You can't change the end users printer orientation from a client browser
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-14-2007, 07:30 PM Re: Printing HTML
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,945
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Supposedly, this feature will be made available in CSS3. However, we're nowhere near CSS3 compliance yet with browsers, so you're gonna have to wait.

http://www.w3.org/TR/2004/CR-css-print-20040225/

Sucks though, because that's a feature that is of some use.
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 05-14-2007, 09:09 PM Re: Printing HTML
WebcyteDesign's Avatar
Extreme Talker

Posts: 159
Location: Hamilton
I'm talking about using VB.Net not ASP.net. This is for a Windows application.
WebcyteDesign is offline
Reply With Quote
View Public Profile Visit WebcyteDesign's homepage!
 
Old 05-19-2007, 12:48 AM Re: Printing HTML
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,024
Name: Forrest Croce
Location: Seattle, WA
Could you describe in more detail what you're trying to do? Are you wanting to essentially send a screen shot from a WebBrowser control to the printer? Do you want to print the html source? I get the idea you want to print the rendered document, not the source ...
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Old 05-23-2007, 07:04 PM Re: Printing HTML
WebcyteDesign's Avatar
Extreme Talker

Posts: 159
Location: Hamilton
I want to print the rendered (formatted) html, so basically print a web page without having a dialog box and having it default to landscape, OR to set the system print to landscape (the machines default printer)
WebcyteDesign is offline
Reply With Quote
View Public Profile Visit WebcyteDesign's homepage!
 
Old 07-08-2007, 04:25 PM Re: Printing HTML
Junior Talker

Posts: 1
Hi,

You can use the HTML to PDF Converter for .NET from (www).dotnet-reporting.com or the <link drop removed > from <link drop removed > . It can convert full HTML and CSS tags. You can even see an online demo on the home page.

Regards,
Florin

Last edited by chrishirst : 07-09-2007 at 04:32 AM. Reason: self promo link drops removed
fchivu is offline
Reply With Quote
View Public Profile
 
Old 07-09-2007, 02:18 PM Re: Printing HTML
Experienced Talker

Posts: 32
Name: Arnold Smith
I think its possible.. I'll try and let you know
arnold is offline
Reply With Quote
View Public Profile Visit arnold's homepage!
 
Old 06-25-2008, 04:20 PM Re: Printing HTML
Junior Talker

Posts: 1
Name: Krish
Anybody got solution? I am also stuck with same problem.
I want to send rendered output to printer in landscape mode.
a4acharya is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Printing HTML
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.16517 seconds with 12 queries