Click here to Skip to main content
15,898,374 members
Home / Discussions / C#
   

C#

 
QuestionReport problem Pin
manoj_ce17-Jul-07 21:26
manoj_ce17-Jul-07 21:26 
QuestionVerify Certificate Revocation using x509chain offline check Pin
suprajav17-Jul-07 20:52
suprajav17-Jul-07 20:52 
QuestionSetting Focus problem... Pin
Dotnetkanna17-Jul-07 20:31
Dotnetkanna17-Jul-07 20:31 
Question.Net 2.0 Pin
razanabanu17-Jul-07 20:20
razanabanu17-Jul-07 20:20 
AnswerRe: .Net 2.0 Pin
Michael Sync17-Jul-07 20:33
Michael Sync17-Jul-07 20:33 
GeneralRe: .Net 2.0 Pin
Michael Sync17-Jul-07 20:34
Michael Sync17-Jul-07 20:34 
AnswerRe: .Net 2.0 Pin
Sathesh Sakthivel17-Jul-07 20:36
Sathesh Sakthivel17-Jul-07 20:36 
QuestionExporting crystal report in excel Pin
Khushbu Patel17-Jul-07 20:20
Khushbu Patel17-Jul-07 20:20 
Sir,
My coding for exprting crystal report in excel is as below. I can get result very well in my pc. But i can't export it in web server. I think something is missing like patches or drivers which are required for crystal reports at web server. I am giving error description also ... pls reply me quickly.

Coding Part :

MemoryStream oStream;

Response.Clear();
Response.Buffer = true;
oStream = (MemoryStream)oRD.ExportToStream(ExportFormatType.Excel);
Response.ContentType = "application/vnd.ms-excel";

try
{
//write report to the Response stream
Response.BinaryWrite(oStream.ToArray());
Response.End();
}

catch (Exception ex)
{
strScript = "<script language=javascript>\n";
strScript += "\tstrShow='CMTL';strErr='Y';strValue = '";
strScript += Server.HtmlEncode(ex.Message.ToString());
strScript +="';\n";
strScript += "</script>\n";
RegisterStartupScript ("warning", strScript);
return;

}

finally
{
//clear stream
oStream.Flush();
oStream.Close();

}

Error part at web server :

Error Message: Error in File E:\NET_Portals\CMTL\Weekly_Reports\crpCommonFieldCom.rpt:
Error detected by export DLL:
Page Error Occurred: /cmtl/cmtl_concrete_field_com.aspx
ExceptionType: CrystalDecisions.CrystalReports.Engine.ExportException
Stack Trace: at '.'I(String , EngineExceptionErrorID )
at '.'D(Int16 , Int32 )
at '.'C(Int16 )
at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportFormatType formatType)
at CMTL_PROJECT.cmtl_concrete_field_com.btnGraph_Click(Object sender, EventArgs e) in f:\webdevelopment\cmtl_project\cmtl_concrete_field_com.aspx.cs:line 272
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain()

khushbu patel
Reliance Industries Limited,
Software Engineer,
Jamnagar.
Questionmultiline textbox problem Pin
srinivassam17-Jul-07 20:07
srinivassam17-Jul-07 20:07 
AnswerRe: multiline textbox problem Pin
Vasudevan Deepak Kumar17-Jul-07 20:10
Vasudevan Deepak Kumar17-Jul-07 20:10 
QuestionHow do i know in which drive windows is installed Pin
Iftekhar Naim17-Jul-07 18:42
Iftekhar Naim17-Jul-07 18:42 
AnswerRe: How do i know in which drive windows is installed Pin
PIEBALDconsult17-Jul-07 18:59
mvePIEBALDconsult17-Jul-07 18:59 
GeneralRe: How do i know in which drive windows is installed Pin
Chayan (cse student)17-Jul-07 19:50
Chayan (cse student)17-Jul-07 19:50 
AnswerRe: How do i know in which drive windows is installed Pin
Paul Conrad17-Jul-07 19:01
professionalPaul Conrad17-Jul-07 19:01 
GeneralRe: How do i know in which drive windows is installed Pin
Iftekhar Naim17-Jul-07 20:04
Iftekhar Naim17-Jul-07 20:04 
AnswerRe: How do i know in which drive windows is installed Pin
Mike Dimmick17-Jul-07 23:21
Mike Dimmick17-Jul-07 23:21 
GeneralRe: How do i know in which drive windows is installed Pin
Iftekhar Naim18-Jul-07 1:05
Iftekhar Naim18-Jul-07 1:05 
QuestionResolution-MDI Pin
tonato84817-Jul-07 18:33
tonato84817-Jul-07 18:33 
QuestionDynamic ComboBox Pin
T.EDY17-Jul-07 18:15
T.EDY17-Jul-07 18:15 
AnswerRe: Dynamic ComboBox Pin
Paul Conrad17-Jul-07 18:58
professionalPaul Conrad17-Jul-07 18:58 
GeneralRe: Dynamic ComboBox Pin
T.EDY17-Jul-07 21:08
T.EDY17-Jul-07 21:08 
QuestionSelecting shapes using mouse Pin
cyn817-Jul-07 17:19
cyn817-Jul-07 17:19 
AnswerRe: Selecting shapes using mouse Pin
Ravi Bhavnani17-Jul-07 17:33
professionalRavi Bhavnani17-Jul-07 17:33 
Questiondisplaying shapes that can be selected, drag and drop Pin
cyn817-Jul-07 16:42
cyn817-Jul-07 16:42 
AnswerRe: displaying shapes that can be selected, drag and drop Pin
Ravi Bhavnani17-Jul-07 17:10
professionalRavi Bhavnani17-Jul-07 17:10 

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.