|
Webparts[^]
Regards,
Satips.
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Walk beside me, and just be my friend. - Albert Camus
|
|
|
|
|
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.
|
|
|
|
|
hi i have multiline textbox i want 3 lines visible at a time , after typeing then i click on next button ,
it gives me Redirect URI cannot contain newline characters.
Whts the solution to this does anybody know....
this line is showing error
<pre>
Response.Redirect("survey.aspx?Count=" + Convert.ToInt32(i + 1)+ "&temp="+Session["Query"].ToString());
</pre>
srinivas
|
|
|
|
|
|
i need to invoke a windows method. For this i call an exe file from windows\system32 directory. But i need to know in which drive winodws is installed. I think it is not wise to hard-code my code -"c:\windows\system32". So can any one tell me how do i know this path from my program in run time?
Thanks
Chayan
|
|
|
|
|
I use System.Environment.ExpandEnvironmentVariables to expand %windir%
e.g.
string MediaDir = System.Environment.ExpandEnvironmentVariables ( @"%windir%\Media\" ) ;
|
|
|
|
|
Hey, Thanks a lot for such quick response. It's really great !!! Thanks mate..
Chayan
|
|
|
|
|
Look for the Windir system variable in the environment variables...
System.Environment.GetEnvironmentVariable("windir") will return the string where Windows is installed
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
Thanks mate for your great help. I am really happy to find such a simple and cool solution . Thanks a lot !!!!
Chayan
|
|
|
|
|
A better solution is System.Environment.GetFolderPath( System.Environment.SpecialFolder.System ) .
|
|
|
|
|
Thanks a lot....Now i know multiple solutions to my problem..
Chayan
|
|
|
|
|
Hi
i have a mdiform with a tabcontrol on it,that my tabcontrol is docking to right side of the mdiparent,and my childs are opening in all extra space of the parent in maximaize state,
my childs autoscrollbars peroprty is set to true,because in 800*600 resolution all my pages can't seen with user,but my parent ,automaticly set the scrolls when needed,in this case, pair of scrolls in parent and child cause to confusing user,
i need both af them to see all ao my child forms
what can i do?
please help me!
thanks
parastoo saadat-c# programmer(i working in .net with c#)
p00932004@yahoo.com
|
|
|
|
|
Hi,
i've a problem how we can bind our data in databse into a combobox?can anyone help me?
Thank YOu
Regard,
Tomi
|
|
|
|
|
You set your Data Source property to what ever query/view or stored procedure you are getting the data from. You then set Display Member to the field you want to display. Value Member is the field value that you want the selected value to return.
Hope this helps you out.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
Thanks A lot Paul..You Solve My Problem
Thanks and Regard
TCim
|
|
|
|
|
Hi,
May i know how to be able to select any shapes drawn by clicking at the border of the particular shape? If there are more than one shapes displayed, how do i select one of them using a mouse event? which command i need to use? Any suggestions?
thanks
|
|
|
|
|
There are no "commands" to do this. You'll have to program this behavior yourself. See this[^] implementation of a drawing canvas that may help you get srtarted. Also see this[^] implementation of a rect tracker.
/ravi
|
|
|
|
|
Hi,
I want to create a form that has 2 areas. One area is where all the pre-drawn shape is located and the other area allows the shapes to be drag and drop onto it.
should i use custom control for the area that allows the shape to drag and drop onto it? How about the other area?
how to ensure that the pre-drawn shape is able to be seen all the time and any one of the shape is able to be selected, drag and drop to the other area?
Any tips what i should do and what kind of classes that i should use?
Thanks
|
|
|
|
|
|
|
Hi,
in C# (and C and C++ and Java) you cannot have just a backslash in a string literal.
Each occurence of \ will consume the next character and replace them both by one
character; examples \n stands for newline, \t for horizontal tab, ...
and finally \\ stands for backslash
So if you want to write a path literal, it would look like "C:\\temp\\file.txt"
where each \\ represents one backslash.
You can turn off all the above, by prefixing a @ sign like so: @"C:\temp\file.txt"
When a variable is holding a string, it holds the actual characters, not the above
conventions (that apply to string literals only). Hence the command line you obtained
will not contain \\ and is perfect for file I/O operations as is.
Hence your statement "C# needs path with \\" is wrong, it is string literal that
wants this (unless @), but not string variables.
|
|
|
|
|
its a string thats working
string abc = "C:\\Documents and Settings\\user\\Desktop\\project\\bin\\Debug\\project.exe %1";
this isnt working
string[] args = Environment.GetCommandLineArgs();
string cm = @args[0] + " %1";
now, any other way or solution...
Becoming Programmer...
|
|
|
|
|
Hi,
"isnt working" is a bad description; if compilation fails, the compiler gives an error
message and a line number, so you should report the exact error message and indicate the
precise line where it happens; this will yield the best reply on these forums !
xmen_xwk wrote: @args[0]
is wrong: @ only acceptable in front of string literal, not in front of string variable.
And what is it you plan to do with cm ?
%1 would not work for Process.Start()
it would work for file extension definition in Registry
I am sure you should not already be manipulating the registry programmatically,
when you still are a beginner in C#, or so it seems...
|
|
|
|
|
Luc Pattyn wrote: "isnt working" is a bad description; if compilation fails, the compiler gives an error
message and a line number, so you should report the exact error message and indicate the
precise line where it happens; this will yield the best reply on these forums !
yeah, as i said "it isnt working" that means not working, it never give any error
Luc Pattyn wrote: And what is it you plan to do with cm ?
i m associating the files,
i have to set my application path in registry thats why i m doing this
the first code is working
and the second isnt working
im saying isnt working because when i click on button that have the first code(its setting the registry), the file directly opens(when click on file) but when i use second then the file doesnt open
i hope you understand....
thanks
Luc Pattyn wrote: I am sure you should not already be manipulating the registry programmatically,
when you still are a beginner in C#, or so it seems...
yep, its first time
Becoming Programmer...
|
|
|
|
|
Does System.Windows.Forms.Application.ExecutablePath() work any better?
What do you get in cm?
What do you do with cm?
|
|
|
|