Click here to Skip to main content
15,910,878 members
Home / Discussions / C#
   

C#

 
QuestionCannot implicitly convert type 'test.Str.StrEnumerator' to 'System.Collections.IEnumerator'. An explicit conversion exists (are you missing a cast?) Pin
abhishek.mumbai17-Jul-07 22:42
abhishek.mumbai17-Jul-07 22:42 
AnswerRe: Cannot implicitly convert type 'test.Str.StrEnumerator' to 'System.Collections.IEnumerator'. An explicit conversion exists (are you missing a cast?) Pin
J4amieC17-Jul-07 23:09
J4amieC17-Jul-07 23:09 
AnswerRe: Cannot implicitly convert type 'test.Str.StrEnumerator' to 'System.Collections.IEnumerator'. An explicit conversion exists (are you missing a cast?) Pin
Colin Angus Mackay17-Jul-07 23:10
Colin Angus Mackay17-Jul-07 23:10 
QuestionHow do you know the current level of datagrid when nested Pin
Muammar©17-Jul-07 22:33
Muammar©17-Jul-07 22:33 
QuestionBuild solution using NAnt [modified] Pin
deep717-Jul-07 22:31
deep717-Jul-07 22:31 
AnswerRe: Build solution using NAnt Pin
Scott Dorman18-Jul-07 7:24
professionalScott Dorman18-Jul-07 7:24 
QuestionC#.net error: Attempt to read or write protected memory or often this is the indication that other memory is currupt Pin
Rao Rafique17-Jul-07 22:15
Rao Rafique17-Jul-07 22:15 
AnswerRe: C#.net error: Attempt to read or write protected memory or often this is the indication that other memory is currupt Pin
Guffa17-Jul-07 22:21
Guffa17-Jul-07 22:21 
QuestionHow to Export an Excel (xls) document that's compatible to all office versions - C# Pin
OhrmaZd17-Jul-07 22:00
OhrmaZd17-Jul-07 22:00 
AnswerRe: How to Export an Excel (xls) document that's compatible to all office versions - C# Pin
originSH17-Jul-07 22:12
originSH17-Jul-07 22:12 
AnswerRe: How to Export an Excel (xls) document that's compatible to all office versions - C# Pin
DavieL17-Jul-07 22:30
DavieL17-Jul-07 22:30 
GeneralRe: How to Export an Excel (xls) document that's compatible to all office versions - C# Pin
OhrmaZd17-Jul-07 23:47
OhrmaZd17-Jul-07 23:47 
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 

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.