联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
How to convert RSS into HTML page using RSS2HTML Scout library and Visual Basic Script (VBScript): "Hello, World!" example You can download the source code of this example here: rss2htmlscout_vbscript.zip This page provides a simple example for RSS2HTML Scout to show how to start with RSS2HTML Scout library and Visual Basic Script (VBScript). 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 2) Run Notepad 3) To convert RSS into HTML and then save generated HTML code into file we will create a very simple script using VBScript scripting language: Set RSS2HTML = CreateObject("RSS2HTMLScoutLib.RSS2HTMLScout") RSS2HTML.ItemsPerFeed = 10 ' display only 5 latest items from every feed ' ##### 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" Set RSS2HTML = nothing Just copy and paste code from this page into notepad and save it as a "Convert.VBS" file. 4) Double-click "Convert.VBS" file in Explorer or in another file manager and VBScript .VBS file will be executed by Windows. The script will generate "Output.html" file. You can view this HTML file using Internet Explorer or another browser. To display HTML files in your Visual Basic application please use WebBrowser control You can download the source code of this example here: rss2htmlscout_vbscript.zip
如何使用RSS2HTML Scout库和Visual Basic脚本(VBScript)将RSS转换为HTML页面:“Hello, World!”示例 您可以在此处下载此示例的源代码:rss2htmlscout_vbscript.zip 此页面提供了一个简单的RSS2HTML Scout示例,以展示如何开始使用RSS2HTML Scout库和Visual Basic脚本(VBScript)。 RSS2HTML Scout能够使用内置的多线程下载RSS源,并使用HTML模板将RSS转换为HTML代码(有关模板的更多信息,请查看在线文档) 下载并安装最新版本的RSS2HTML Scout。您可以在此处下载 2)运行记事本 3)要将RSS转换为HTML,然后将生成的HTML代码保存到文件中,我们将使用VBScript脚本语言创建一个非常简单的脚本: Set RSS2HTML = CreateObject("RSS2HTMLScoutLib.RSS2HTMLScout") RSS2HTML.ItemsPerFeed = 10 ' 仅显示每个源的5个最新项目 ' ##### 我们可以添加多个RSS源 ######### RSS2HTML.AddFeed "http://bytescout.com/news.xml", 180 ' 每180分钟(3小时)更新一次 RSS2HTML.Execute RSS2HTML.SaveOutputToFile "Output.html" Set RSS2HTML = nothing 只需将此页面中的代码复制并粘贴到记事本中,并将其保存为“Convert.VBS”文件。 4)在资源管理器或其他文件管理器中双击“Convert.VBS”文件,Windows将执行VBScript .VBS文件。 脚本将生成“Output.html”文件。 您可以使用Internet Explorer或其他浏览器查看此HTML文件。要在您的Visual Basic应用程序中显示HTML文件,请使用WebBrowser控件 您可以在此处下载此示例的源代码:rss2htmlscout_vbscript.zip
附件 1: rss2html.rar (2006-10-3 11:15, 417 bytes, 下载附件所需积分 1 点 ,下载次数: 36)