Solved

VB.Net: ListView to Excel

Posted on 2012-04-09
5
500 Views
Last Modified: 2012-04-15
Hi Experts,

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

Thanks in advance.
0
Comment
Question by:baabaa_nl
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 5

Assisted Solution

by:rtay
rtay earned 200 total points
ID: 37823905
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
 

Author Comment

by:baabaa_nl
ID: 37823999
Could you please give me a code or the link for the SSRS report.
Thanks in advance.
0
 
LVL 5

Assisted Solution

by:rtay
rtay earned 200 total points
ID: 37824039
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
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 300 total points
ID: 37832975
0
 

Author Comment

by:baabaa_nl
ID: 37846365
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

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question