User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the VB.NET section within the Software Development category of DaniWeb, a massive community of 426,445 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,152 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our VB.NET advertiser: Programming Forums
Views: 7563 | Replies: 7
Reply
Join Date: Jul 2005
Posts: 1
Reputation: Tsjelle is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Tsjelle Tsjelle is offline Offline
Newbie Poster

Printing HTML from VB.Net

  #1  
Jul 8th, 2005
Hi there,

My name is Tsjelle Stevens,
I'm a Bachelor in the Informatics.

I'm writing a program in vb.net that get's an xml-file as input and somewhere in the xml-file there is an attribute that's in fact an HTML-page. And it's that page I need to get printed.

I'm at the point that this HTML-page is in a string, i've tried all possible ways and just had a search of 3 days on the net, but i still can't find a simple solution.

It's a sort of confirmation of an order, the HTML-file.

If someone can help me?

Thanks in advance,

Tsjelle Stevens
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2007
Posts: 3
Reputation: moggaa is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
moggaa moggaa is offline Offline
Newbie Poster

Re: Printing HTML from VB.Net

  #2  
Nov 29th, 2007
you have to search about java script print form
if any problem send to me moggaa@hotmail.com
Reply With Quote  
Join Date: Nov 2007
Location: High Point, NC
Posts: 37
Reputation: emurf is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 4
emurf emurf is offline Offline
Light Poster

Re: Printing HTML from VB.Net

  #3  
Nov 29th, 2007
Do you have an example of the part of the XML file that has the html (I thought that the html tags would cause an error in the XML file)? You may need to read the XML into a dataset and then retrieve the element that has the html then remove anything that looks like an html tag and send it to the printer.
Reply With Quote  
Join Date: Nov 2007
Posts: 3
Reputation: moggaa is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
moggaa moggaa is offline Offline
Newbie Poster

Re: Printing HTML from VB.Net

  #4  
Nov 30th, 2007
Hi man,

i don't understand well wahat are you said, please update with code to know in which part i will help you if i don't get the answer for you, if your problem when you retrive your xml to html you can do that with xsl and in this we'll not able to have any proplem with any tag.
Reply With Quote  
Join Date: Nov 2007
Location: High Point, NC
Posts: 37
Reputation: emurf is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 4
emurf emurf is offline Offline
Light Poster

Re: Printing HTML from VB.Net

  #5  
Dec 3rd, 2007
Hey, I think that he is saying that the html is located within xml tags.
Reply With Quote  
Join Date: Nov 2007
Posts: 3
Reputation: moggaa is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
moggaa moggaa is offline Offline
Newbie Poster

Re: Printing HTML from VB.Net

  #6  
Dec 4th, 2007
Yes, but you have to know that the XML File must related with XSL File
Like that

<?xml version='1.0' encoding='ISO-8859-1'?>
<?xml-stylesheet type='text/xsl' href='Months.XSL'?>

And you design in your XSL html tags as you wish
Reply With Quote  
Join Date: Nov 2007
Location: High Point, NC
Posts: 37
Reputation: emurf is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 4
emurf emurf is offline Offline
Light Poster

Re: Printing HTML from VB.Net

  #7  
Dec 4th, 2007
Yes, I know how xml and xsl are related but how would an html document look nested in xml tags?
Reply With Quote  
Join Date: Jun 2006
Location: Sweden
Posts: 45
Reputation: Oxiegen is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 2
Oxiegen Oxiegen is offline Offline
Light Poster

Re: Printing HTML from VB.Net

  #8  
Dec 5th, 2007
Why not just extract the HTML part from the XML file, display it in a hidden WebBrowser control and then print it from there?

That would be the same as printing a normal webpage from, say Internet Explorer using
File->Print. Right?
Last edited by Oxiegen : Dec 5th, 2007 at 1:34 am.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb VB.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the VB.NET Forum

All times are GMT -4. The time now is 2:56 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC