RSS2HTML Scout

Hello, World! example for RSS2HTML Scout library and Visual Basic

Products Download Purchase Support Contacts
 
RSS2HTML Scout
Direct Links

 

 

Looking for ASP script to display RSS? Check our RSS2HTMLPro.ASP script for ASP/ASP.NET

 

How to create HTML page displaying news from RSS channel using RSS2HTML Scout library and Visual Basic: "Hello, World!" example

 

You can download the source code of this example here: rss2htmlscout_vb.zip

This page provides a simple example for RSS2HTML Scout to show how you can start with RSS2HTML Scout library and Visual Basic. 

RSS2HTML Scout is capable of downloading RSS feeds using built-in multi-threaded and converting RSS into HTML code using HTML templates (check online documentation for more information about templates)

First download and install the latest version of RSS2HTML Scout. You can download it here

Run Visual Basic and go to a File menu. Then click New menu item to start Project Wizard

Visual Basic file menu new command
 

Project Wizard will appear:

New Visual Basic project wizard

 

2) Select Standard EXE project type and click Open to create a new project.


Visual Basic will generate the new project called Project1 and will automatically open the main form of the generated project:

New project generated by Visual Basic
 

3) Click on Form1 surface and Visual Basic will show the code window for Form_Load event:

Visual Basic form load event code handler auto generated

 

4) Now you should add the code that will initialize RSS2HTML Scout library and convert RSS to HTML using library:

Here is the source code that you can simply copy and paste into Visual Basic:

Private Sub Form_Load()

Set RSS2HTML = CreateObject("RSS2HTMLScoutLib.RSS2HTMLScout")

RSS2HTML.ItemsPerFeed = 5
' display only 5 latest items
' ##### we can add more than one RSS feed #########

RSS2HTML.AddFeed "http://bytescout.com/news.xml", 180 
' update every 180 minutes (3 hours)
RSS2HTML.Execute
RSS2HTML.SaveOutputToFile "Output.html" ' save output to HTML file
 
End Sub
 
This function will download and create HTML file "Output.html" file that contain latest 5 news items from Bytesout's RSS feed
 
Hint:

You can simply copy the source code from the snippet above and then paste it in the Visual Basic code editor.

5) Press F5 to run the application (you can also use "Run" | "Start" menu command). 
 
Run project button on toolbar
 

 

6) Visual Basic will run the application and application will generate HTML file "Output.HTML".

You can view generated HTML file using Internet Explorer or another browser. To display HTML files in your Visual Basic application please use WebBrowser control
 

HTML content converted from RSS using RSS2HTML Scout ActiveX library

You can download the source code of this example here: rss2htmlscout_vb.zip




"Hello, World!" examples for different programming languages will guide you step by step from the very beginning:

See also:
Products  |  Download  |  Purchase  |  Support  |  Contacts  |  Testimonials |  
ByteScout, 2003-2005. All other company and product names may be trademarks of their respective companies.Flash and Macromedia Flash are trademarks of Macromedia, Inc. Privacy Statement