|
It won't tell you, because it can reach the code. My guess would be an exception is thrown before it can reach the code. Probably because of this:
for (int ctr = 0; ctr <= files.Length; ctr++)
You should make that
for (int ctr = 0; ctr < files.Length; ctr++)
Indexation of your array begins at 0, not 1.
Standards are great! Everybody should have one!
|
|
|
|
|
Thanks
I had to surround the block with try catch to see what the error actually is!
Thanks for the tip Bekjong!
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
hi all,
I ve a problem.I created a user control(Marquee control,logic:-drawing the string at system.Threading.Timer event),it is working fine.When I place the control in one of the form(form is accessing a web service,will take few seconds to get the data),control is not running smoothly.it is hanging for a while (web serice cause the delay).I created a thread & put the WS,Now the form(GUI) is hanging for a while,when it refresh the marquee text is running like Fast forward for a while.It means the marquee is running at the back ground, but I can not see,how to make marquee visible(running smoothly)
Thanks in advance,
ebin
|
|
|
|
|
Controls and forms should sit on the same thread.
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
Hi,
I often see [STAThread] above the main method of other people's classes, but I honestly have no idea what it does someone willing to enlighten me? (I know its static thread, but what does it DO?)
|
|
|
|
|
Hello,
It marks the main entry point for the application.
Your programm will start at this point, in the main thread.
All the best,
Martin
-- modified at 3:59 Monday 9th July, 2007
my spam message for today!
|
|
|
|
|
Isn't that what the Main method is for?
|
|
|
|
|
You are write it's an Attribute for the Main method.
Which marks it as "Single-Threaded apartment" like 'Michael Sync'[^] said befor!
-- modified at 3:55 Monday 9th July, 2007
|
|
|
|
|
It's not for marking the entry point but rather specifying the threading model. See here[^] for some details.
Steve
|
|
|
|
|
Hallo,
Thank's for the link.
I shouldn't replay out of a hurry, I know!
A quite lousy statement from me.
Sorry for that!
All the best,
Martin
|
|
|
|
|
it just make ur app as "Single-Threaded apartment"
|
|
|
|
|
|
this threrad is for keeping updating the GUI of your form i think!
|
|
|
|
|
Sir,
Actually I have written following code to export a crystal report in excel. It works in my local PC very well but it's not working in Web server.Ms-Excel is available in web server.Second thing is that if I convert it in .pdf then it's working successfully.Just I face problem in excel only.So I can't rectify the problem?? I think some driver or patches are used in this code which are not available in web server.Can u send me the list of pre-required components??
Sir pls reply immediatly.It's very imp.
My code is
ReportDocument oRD = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
DiskFileDestinationOptions oExDo = new CrystalDecisions.Shared.DiskFileDestinationOptions();
oRD.Load(Request.ServerVariables["APPL_PHYSICAL_PATH"].ToString() + "Weekly_Reports\\crpCommonFieldCom.rpt");
ReportDefinition oDef = oRD.ReportDefinition;
// Sub Report1
foreach(ReportObject obj in oDef.ReportObjects)
{
if (obj is SubreportObject)
{
SubreportObject oSub1 = (SubreportObject)obj;
ReportDocument oRdSub1 = oSub1.OpenSubreport(oSub1.SubreportName);
if (oSub1.SubreportName == "crpM35.rpt")
{
oRdSub1.Database.Tables[0].SetDataSource(ds.Tables["M35"]);
}
if (oSub1.SubreportName == "crpM30.rpt")
{
oRdSub1.Database.Tables[0].SetDataSource(ds.Tables["M30"]);
}
if (oSub1.SubreportName == "crpM25.rpt")
{
oRdSub1.Database.Tables[0].SetDataSource(ds.Tables["M25"]);
}
}
}
ExportOptions oExO;
string strFile = Path.GetTempPath() + Session.SessionID.ToString() + ".xls";
oExDo.DiskFileName = strFile;
oExO = oRD.ExportOptions ;
oExO.ExportDestinationType = ExportDestinationType.DiskFile ;
oExO.ExportFormatType = ExportFormatType.Excel;
oExO.DestinationOptions = oExDo;
oRD.Export();
oRD.Close();
Response.ClearContent();
Response.ClearHeaders();
Response.ContentType = "application/vnd.ms-excel";
Response.WriteFile(strFile);
Response.Flush();
Response.Close();
//delete the exported file from disk
System.IO.File.Delete(strFile);
khushbu patel
Reliance Industries Limited,
Software Developer,
Jamnagar.
|
|
|
|
|
Did u use any other javascript funtion in your page??? I think it is better if you try ur sample in blank page. and see whether it works or not..
|
|
|
|
|
Hi!
I make a DEVICE APPLICATION (windows form not webform!!!)and i need help!
Can anybody tell me how to insert into a datagrid a checkbox column?
Thank you!
Marta Paniti.
-- modified at 5:23 Monday 9th July, 2007
--------------------------------
visit: http://pmartike.deviantart.com/
|
|
|
|
|
|
winform for pocketPC
--------------------------------
visit: http://pmartike.deviantart.com/
|
|
|
|
|
|
Check the checkedbox "Ignore HTML tags in this message (good for code snippets)" when pasting the code.
|
|
|
|
|
Hello,
razanabanu wrote: What happened?..
You posted a lot of empty messages!
razanabanu wrote: Sorry I cant paste my coding here
You can, I'm sure!
razanabanu wrote: I dont know what happened
You forgot to turn the HTML tags off.
'Ignore HTML tags in this message'
Or use the 'pre Tags
P.S.: You should delete the other posts!
All the best,
Martin
-- modified at 3:45 Monday 9th July, 2007
Again I forgot to say:
Not the one with the responses!
You can modify that one!
|
|
|
|
|
<Columns>
<asp:TemplateColumn HeaderText="ItemCode">
<ItemTemplate>
<asp:CheckBox ID="ch" OnCheckedChanged="ch_CheckedChanged" Runat="server" AutoPostBack="True" Text='<%#DataBinder.Eval(Container.DataItem,"itemcode")%>'>
</asp:CheckBox>
<asp:TextBox ID="txt" Runat="server" AutoPostBack="True" Text='<%#DataBinder.Eval(Container.DataItem,"itemname")%>'>
</asp:TextBox>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
Hi,Im Razana
|
|
|
|
|
but i need for winform ...
--------------------------------
visit: http://pmartike.deviantart.com/
|
|
|
|
|
Hi All!!,how can I implement API in C# we Application.Im a beginner...so please give me a simple sample code to implement it in C# WEB Form...
Hi Satips and Christian...how are you?,other members too...
Hi,Im Razana
|
|
|
|
|