Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

VB.Net: ListView to Excel

Posted on 2012-04-09
5
Medium Priority
?
541 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
  • 2
  • 2
5 Comments
 
LVL 5

Assisted Solution

by:rtay
rtay earned 800 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 800 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 1200 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

916 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