RSS2HTML Scout

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

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.NET : "Hello, World!" example

 

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

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

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)

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

Run Microsoft Visual Studio 2003.NET
 
Go to New menu and click Project... to create new project as shown on screenshot below:
 
File menu in VB net IDE
 
You will see New Project Wizard. Select Windows Application in Visual Basic Projects group:
 
New project wizard
 
2) VB.NET will create a new project:
 
New project generated by wizard
 
3) To use RSS2HTML Scout in Visual Basic.NET we have to add reference to RSS2HTML Scout library for current VB.NET project. Select Project in main menu and click Add Reference command:
 
Add reference menu command
 
Switch to COM tab and find RSS2HTML Scout library in the list of available COM objects:
 
Add reference dialog
 
Now click on Select button to add reference to RSS2HTML Scout and click OK
 
Click OK button
 
4) Now add the simple code that will convert RSS into HTML using RSS2HTML Scout library. Double-click Form1 to create Form1_Load event procedure:
 
VB.NET project form
 
The source code editor window will appear:
 
Source code editor window
 
5) The code that will generate HTML file using link to RSS channel is below. Generated HTML code will be saved into "Output.HTML" file. You can simply copy-and-paste this code into your project.
          
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim RSS2HTML As RSS2HTMLScoutLib.RSS2HTMLScout
        RSS2HTML = New 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
 
Hint:
You can simply copy the source code from the snippet above and paste into Visual Basic.NET code editor window:
 
6) Press F5 to run the application (you can also use "Debug" | "Start" menu command) and Visual Basic.NET will run the application:
 
Run project menu command
 
The application will create HTML file and will save it as "Output.html" file
 
 You can view the 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_net.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