Click here to Skip to main content
15,915,093 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Progress Bar Pin
senthilsstil25-Dec-07 3:45
senthilsstil25-Dec-07 3:45 
GeneralRe: Progress Bar Pin
senthilsstil25-Dec-07 3:54
senthilsstil25-Dec-07 3:54 
AnswerRe: Progress Bar Pin
Mogaambo25-Dec-07 4:46
Mogaambo25-Dec-07 4:46 
GeneralRestart IIS after publish Pin
manowj24-Dec-07 2:42
manowj24-Dec-07 2:42 
AnswerRe: Restart IIS after publish Pin
John-ph24-Dec-07 3:04
John-ph24-Dec-07 3:04 
GeneralRe: Restart IIS after publish Pin
manowj25-Dec-07 19:07
manowj25-Dec-07 19:07 
Generaldisplaying report in excel Pin
shabi uz zaman24-Dec-07 2:06
shabi uz zaman24-Dec-07 2:06 
AnswerRe: displaying report in excel Pin
John-ph24-Dec-07 2:29
John-ph24-Dec-07 2:29 
You can use the below written procedure to display the crystal report in excel format in a web form. You have to pass the instance of the crystal report and the dataset as parameter to this procedure.

private void subDisplayReport(ReportClass rptObject, DataSet lDataSet) 
{ 
    rptObject.SetDataSource(lDataSet); 
    rptObject.ExportOptions.FormatOptions = new ExcelFormatOptions(); 
    rptObject.ExportOptions.ExportFormatType = ExportFormatType.Excel; 
    ExportRequestContext req = new ExportRequestContext(); 
    req.ExportInfo = rptObject.ExportOptions; 
    System.IO.Stream st; 
    st = rptObject.FormatEngine.ExportToStream(req); 
    byte[] b = new byte[(int)st.Length + 1]; 
    st.Read(b, 0, (int)st.Length); 
    Response.ClearContent(); 
    Response.ClearHeaders(); 
    Response.ContentType = "application/xls"; 
    Response.AddHeader("content-disposition", "inline; filename=MyReport.xls"); 
    Response.BinaryWrite(b); 
    Response.End(); 
} 


Procedure written by John(J O N) in VB.NET on 19/10/2005. Code converted to C#

- Regards -
   JON


     Life is not measured by the amount of breaths we take, but by the moments that take our breath away.


GeneralRe: displaying report in excel Pin
Paul Conrad24-Dec-07 10:31
professionalPaul Conrad24-Dec-07 10:31 
GeneralSystem.Data.OleDb.OleDbException: Unspecified error Pin
abhishek.mumbai24-Dec-07 1:56
abhishek.mumbai24-Dec-07 1:56 
Generalconfused in authorize.net [modified] Pin
Mogaambo24-Dec-07 1:39
Mogaambo24-Dec-07 1:39 
GeneralRe: confused in authorize.net Pin
Michael Sync25-Dec-07 19:25
Michael Sync25-Dec-07 19:25 
QuestionHow can we change a user control at runtime ? Pin
manish.singhal24-Dec-07 1:34
manish.singhal24-Dec-07 1:34 
AnswerRe: How can we change a user control at runtime ? Pin
John-ph24-Dec-07 1:53
John-ph24-Dec-07 1:53 
GeneralRe: How can we change a user control at runtime ? Pin
manish.singhal27-Dec-07 1:21
manish.singhal27-Dec-07 1:21 
GeneralRe: How can we change a user control at runtime ? Pin
manish.singhal28-Dec-07 1:01
manish.singhal28-Dec-07 1:01 
Questionhi everybody Pin
fgfdhghgfd24-Dec-07 1:19
fgfdhghgfd24-Dec-07 1:19 
AnswerRe: hi everybody Pin
John-ph24-Dec-07 1:43
John-ph24-Dec-07 1:43 
GeneralRe: hi everybody Pin
neerubee25-Dec-07 23:07
neerubee25-Dec-07 23:07 
Question[Message Deleted] Pin
manowj24-Dec-07 0:55
manowj24-Dec-07 0:55 
GeneralRe: Timer control in Global.asax Pin
John-ph24-Dec-07 1:36
John-ph24-Dec-07 1:36 
GeneralRe: [Message Deleted] Pin
Paul Conrad24-Dec-07 10:33
professionalPaul Conrad24-Dec-07 10:33 
Questionhow this date problem is solved Pin
jagan12324-Dec-07 0:44
jagan12324-Dec-07 0:44 
AnswerRe: how this date problem is solved Pin
John-ph24-Dec-07 1:05
John-ph24-Dec-07 1:05 
GeneralRe: how this date problem is solved Pin
jagan12324-Dec-07 1:11
jagan12324-Dec-07 1:11 

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.