Click here to Skip to main content
15,891,136 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how to write a event for a dynamically created controll in C# Pin
Tirthadip2-Apr-07 20:05
Tirthadip2-Apr-07 20:05 
QuestionOpen Crystal Report in PDF form Automaticaly Pin
ALAQUNAIBI2-Apr-07 19:30
ALAQUNAIBI2-Apr-07 19:30 
AnswerRe: Open Crystal Report in PDF form Automaticaly Pin
varshavmane2-Apr-07 20:22
varshavmane2-Apr-07 20:22 
GeneralRe: Open Crystal Report in PDF form Automaticaly Pin
ALAQUNAIBI2-Apr-07 21:11
ALAQUNAIBI2-Apr-07 21:11 
GeneralRe: Open Crystal Report in PDF form Automaticaly Pin
varshavmane2-Apr-07 22:36
varshavmane2-Apr-07 22:36 
GeneralRe: Open Crystal Report in PDF form Automaticaly Pin
ALAQUNAIBI3-Apr-07 20:34
ALAQUNAIBI3-Apr-07 20:34 
QuestionExport GridView To Excel Pin
varshavmane2-Apr-07 19:12
varshavmane2-Apr-07 19:12 
AnswerRe: Export GridView To Excel Pin
Sathesh Sakthivel2-Apr-07 19:29
Sathesh Sakthivel2-Apr-07 19:29 
GridView does not have direct functionality to export data into Excel, so you would need to add extra efforts on your side to do this job.
There are several ways to export data into Excel and preserve format

1. Use Jet OLEDB Provider. You need to create INSERT SQL statements and loop through the rows of the grid to insert records one by one. But in this case you need to convert your column from numeric data type to string one.

2. Use Microsoft Office Tools for .NET. This way is slower, but gives you more functionality and allows formatting of the data. It allows you to control your output, but could be very slow and you need to pay attention to releasing all the resources associated with it, because it is COM-based.

3. Write code that stores data into CSV or HTML. Those formats recognized by Excel and should preserve formatting

4. Use third party components like Ajax, that could provide desired functionality



Regards,

Satips.

GeneralRe: Export GridView To Excel Pin
varshavmane2-Apr-07 19:50
varshavmane2-Apr-07 19:50 
AnswerRe: Export GridView To Excel Pin
Vinay Dornala2-Apr-07 21:07
Vinay Dornala2-Apr-07 21:07 
GeneralRe: Export GridView To Excel Pin
varshavmane2-Apr-07 21:10
varshavmane2-Apr-07 21:10 
GeneralRe: Export GridView To Excel Pin
Vinay Dornala2-Apr-07 21:31
Vinay Dornala2-Apr-07 21:31 
GeneralRe: Export GridView To Excel Pin
varshavmane2-Apr-07 22:38
varshavmane2-Apr-07 22:38 
GeneralRe: Export GridView To Excel Pin
Vinay Dornala2-Apr-07 23:39
Vinay Dornala2-Apr-07 23:39 
Question.dll hell Pin
sra222-Apr-07 18:51
sra222-Apr-07 18:51 
AnswerRe: .dll hell Pin
Nicejith2-Apr-07 19:43
Nicejith2-Apr-07 19:43 
GeneralRe: .dll hell Pin
sra222-Apr-07 21:18
sra222-Apr-07 21:18 
Questionhow do i retrive the data from one cell in the sql database? Pin
neodeaths2-Apr-07 18:50
neodeaths2-Apr-07 18:50 
AnswerRe: how do i retrive the data from one cell in the sql database? Pin
gauthee2-Apr-07 19:23
gauthee2-Apr-07 19:23 
AnswerRe: how do i retrive the data from one cell in the sql database? Pin
neodeaths2-Apr-07 19:29
neodeaths2-Apr-07 19:29 
GeneralRe: how do i retrive the data from one cell in the sql database? Pin
Tirthadip2-Apr-07 19:52
Tirthadip2-Apr-07 19:52 
GeneralRe: how do i retrive the data from one cell in the sql database? Pin
neodeaths2-Apr-07 19:56
neodeaths2-Apr-07 19:56 
GeneralRe: how do i retrive the data from one cell in the sql database? Pin
Nicejith2-Apr-07 20:01
Nicejith2-Apr-07 20:01 
GeneralRe: how do i retrive the data from one cell in the sql database? Pin
Vinay Dornala2-Apr-07 21:40
Vinay Dornala2-Apr-07 21:40 
GeneralRe: how do i retrive the data from one cell in the sql database? Pin
neodeaths3-Apr-07 16:52
neodeaths3-Apr-07 16:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.