Populate to IE

  • Thread starter Thread starter Grey
  • Start date Start date
G

Grey

Can I export a data list from Data grid of windows application into IE HTML page?? If so, how to do it.


Million Thanks


Eric
 
Eric,

There are several ways. If your data source is a data set, you can use
XmlDataDocument to transform the data to HTML with an XSL stylesheet. Or,
you can iterate on the rows of the list manually and write pieces of HTML to
a StreamWriter.

Does this answer your question?

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://www.x-unity.net/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

Can I export a data list from Data grid of windows application into IE HTML
page?? If so, how to do it.


Million Thanks


Eric
 
thank you for your suggesiton...but one more thing....how can I start the IE
and start the page with my defined URL...
 
Yes and it's easy. Use the System.Diagnostics.Process class, supply it with
the URL as the process executable and be sure to set ShellExecute to true:

using System.Diagnostic;

Process process = new Process();
process.StartInfo.FileName = "file:///C:/mypage.html";
process.StartInfo.CreateNoWindow = false;
process.StartInfo.UseShellExecute = true;
process.Start();

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://www.x-unity.net/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

Grey said:
thank you for your suggesiton...but one more thing....how can I start the IE
and start the page with my defined URL...

Dmitriy Lapshin said:
Eric,

There are several ways. If your data source is a data set, you can use
XmlDataDocument to transform the data to HTML with an XSL stylesheet. Or,
you can iterate on the rows of the list manually and write pieces of
HTML
to
a StreamWriter.

Does this answer your question?

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://www.x-unity.net/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

Can I export a data list from Data grid of windows application into IE HTML
page?? If so, how to do it.


Million Thanks


Eric
 
Back
Top