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:
You will see New
Project Wizard.
Select Windows
Application in Visual
Basic Projects group:
2) VB.NET
will create a new
project:
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:
Switch to COM tab
and find RSS2HTML Scout library in
the list of available COM objects:
Now click on Select button
to add reference to RSS2HTML Scout and click OK
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:
The source code editor
window will appear:
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:
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