Hi everyone!

For some time that i don't post here a message on the forum, i've been a little out of the lineup due to school, but now that the holidays are almost start i will learn some things new :)

So the problem is . .

I created a project in which the user writes the first and last name on two different labels and in form there is an Export button to export what is written on the labels to an Excel sheet. All this has got to do.
Now what I want is that besides exporting it save in the folder C: \ example \ folha1.xls for example. What is the simplest way to do this?
Thanks.

Recommended Answers

All 2 Replies

>What is the simplest way to do this?

You have two ways:

1. Oledb
2. Office InterOp.

Thanks :)
I had already solved my problem, it was quite simple..

just did the following:

ws.SaveAs("C:" + "Book1.xls");
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.