I need to generate HTML files based on the some codes. One HTML file per code. I have the link (ex:http://123.234.345.456/WebPages/GetTestData.aspx?SomeCode=25), by passing the code as parameter I will get the page displayed. But I don't want to display it, instead save those files in one of the network directories that can be accessed by our third party vended web based application. How can I do this accessing and saving HTML files a directory using C# in a windows app or Windows service? Any help? Thanks for your time, Vijay
Is it that much difficult to provide solution? Is it the same for MSFTs too? Please provide some workable solution I have an urgent need. Thanks, Vijay "Vijay" wrote: > I need to generate HTML files based on the some codes. One HTML file per > code. I have the link > (ex:http://123.234.345.456/WebPages/GetTestData.aspx?SomeCode=25), by passing > the code as parameter I will get the page displayed. > > But I don't want to display it, instead save those files in one of the > network directories that can be accessed by our third party vended web based > application. How can I do this accessing and saving HTML files a directory > using C# in a windows app or Windows service? Any help? > > Thanks for your time, > Vijay
Solution: ---------- private void button1_Click(object sender, System.EventArgs e) { string sURL = "www.google.com"; axWebBrowser1.Navigate(sURL); } // axWebBrowser1 event private void axWebBrowser1_DocumentComplete(object sender, AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent e) { string sFileName = System.Windows.Forms.Application.StartupPath + "\\ATC.htm"; UCOMIPersistFile oPersistFile = (UCOMIPersistFile)axWebBrowser1.Document; oPersistFile.Save(sFileName, true); } "Vijay" wrote: > Is it that much difficult to provide solution? Is it the same for MSFTs too? > Please provide some workable solution I have an urgent need. > > Thanks, > Vijay > > > "Vijay" wrote: > > > I need to generate HTML files based on the some codes. One HTML file per > > code. I have the link > > (ex:http://123.234.345.456/WebPages/GetTestData.aspx?SomeCode=25), by passing > > the code as parameter I will get the page displayed. > > > > But I don't want to display it, instead save those files in one of the > > network directories that can be accessed by our third party vended web based > > application. How can I do this accessing and saving HTML files a directory > > using C# in a windows app or Windows service? Any help? > > > > Thanks for your time, > > Vijay