VB.Net: ListView to Excel

Hi Experts,

I need to export the data in a ListView to be exported to an Excel.

Thanks in advance.
baabaa_nlAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
rtayConnect With a Mentor Commented:
An easy way would be to create a SSRS report (embeded or not) based on the same query and use the report export function to save to Excell.
0
 
baabaa_nlAuthor Commented:
Could you please give me a code or the link for the SSRS report.
Thanks in advance.
0
 
rtayConnect With a Mentor Commented:
In Visual Studio, right click on your project in the solution explorer.
Add new item
Repoting
create a test report using the wizard.
Once you create the report, go add a new windows form to your project and from the tool box, under reporting add a Microsoft report viewer to the form.  using the tag in the report viewer item, point to the report you just created.  

Create a link to that new form from your list view form.  

Here is more information on SSRS reports.

http://www.packtpub.com/article/creating-report-with-visual-studio-2008
0
 
baabaa_nlAuthor Commented:
Hi CodeCruiser,

The link you give me is for exporting data to excel from the Dataset.

But I need to export data to excel from a ListView

Thanks in advance.
0
All Courses

From novice to tech pro — start learning today.