16,011,949 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by siddharth629 (Top 41 by date)
siddharth629
30-Oct-14 1:07am
View
sir ,can we call Main method in Generic class. how ?
siddharth629
30-Oct-14 0:56am
View
sir i want to call Dispaly() Method Within same class.
siddharth629
30-Oct-14 0:53am
View
Error 1 Program 'GenericWithMainMethod\GenericWithMainMethod\obj\x86\Debug\GenericWithMainMethod.exe' does not contain a static 'Main' method suitable for an entry point GenericWithMainMethod
siddharth629
30-Oct-14 0:52am
View
Error 1 Program 'GenericWithMainMethod\GenericWithMainMethod\obj\x86\Debug\GenericWithMainMethod.exe' does not contain a static 'Main' method suitable for an entry point GenericWithMainMethod
siddharth629
20-Sep-14 7:23am
View
sir,
please provide some basic idea what happen behind the seen when i am implementing the only one Display method. and code is compile and run well and good .but not asking about other Dispaly() method .as we know that there compulsory to Implement the Method of Abstract AND Interface when ever we extend or Implement in our class
siddharth629
15-Sep-14 7:27am
View
thanks sir.
siddharth629
15-Sep-14 7:27am
View
thanks sir.
siddharth629
15-Sep-14 7:27am
View
thanks sir.
siddharth629
15-Sep-14 4:47am
View
AND then WHY obj=s please explain it in deep or if you have a link regarding that the please send me
siddharth629
15-Sep-14 4:36am
View
sir,
then Why obj==s is true . and s==s1 is also true
please don't get irritated.
siddharth629
13-Jun-14 3:07am
View
If an interface method is sealed, a derived class cannot override the method. However, a derived class can re-inherit the same interface and can provide its own implementation for the interface’s methods."
and what does it mean ...plz explain only these tow line
siddharth629
13-Jun-14 3:07am
View
"If you explicitly mark the method as virtual, the compiler marks the method as virtual (and leaves it unsealed)"
what dosed it mean i want to know can we explicitly mark the methods as virtual.
siddharth629
9-Feb-14 23:40pm
View
sir first i am feeling sorry for "class1". and thanks for the lovely post.
siddharth629
9-Feb-14 23:12pm
View
thanks sir ,means when ever we create a parametrise constructor then a explicitly declaration of default constructor is needed.
siddharth629
4-Feb-14 2:22am
View
http://mrbigglesworth79.blogspot.in/2011/05/delegates-101-part-i-what-is-delegate.html i was reading an artical about delegate an i got that examle... so i am puzzled what i have to do to resolve that ..
siddharth629
15-Jan-14 3:47am
View
use this 'cbxEid.SelectedItem.ToString()'; or '"cbxEid.SelectedItem.ToString()"' it may be help u
siddharth629
15-Jan-14 1:11am
View
sir thanks ,
sir can you provide some link or guide line to understand my fault.
siddharth629
15-Jan-14 0:56am
View
thanks.
siddharth629
9-Jan-14 3:06am
View
this is the code for WORK BOOK..........
public static Workbook GetWorkbook(String _fileName)
{
var excel = new Application();
var workbook = excel.Workbooks.Open(_fileName, 1, true,
5, "",
"", true,
XlPlatform.xlWindows, "",
true, false,
0, false,
false, true);
excel.Visible = false;
return workbook;
}
........this where i m writng data
public byte[] GetRiskReportByte(IList riskList, RiskListHelper risklisthelper)
{
string fileName = null;
Workbook theWorkbook = null;
fileName = "_Report.xlsx";
theWorkbook =GetWorkbook(AppDomain.CurrentDomain.BaseDirectory + "\\" + "Report" + "\\" + "_Report.xlsx");
var worksheet = (Worksheet)theWorkbook.Sheets[1];
var worksheet2 = (Worksheet)theWorkbook.Sheets[2];
worksheet.Name = "xyzReport";
worksheet2.Name = "zzz";
worksheet.Cells[1, 1] = "Risk Name";
worksheet.Protect("abc@123$", false, true, false, true, false, false, false, false, false, false, false, false, false, false, false);
worksheet.Cells.Locked = false;
theWorkbook.SaveCopyAs(fileName);
byte[] byteContent = ExportImportUtil.StreamFile(fileName);
File.Delete(fileName);
theWorkbook.Close(false, fileName, true);
return byteContent;
}
siddharth629
9-Jan-14 2:28am
View
sir,
this error is occured when i m generating the file wit .xlsx file but
when i m generating .xls file with same code then there is no warning or msgs same code
siddharth629
7-Jan-14 6:40am
View
i also try to color a ROW of woksheet but when i m trying to do
// _worksheet.get_Range(_worksheet.Cells[1, 1], _worksheet.Cells[1, 8]).Font.Bold = true; then i am geting the error Object Doest Not contain definition for get_Range
siddharth629
7-Jan-14 6:37am
View
_worksheet.Cells[1, 1] = "Risk Name"; i want to change the color of "risk name" ie.blue font.
siddharth629
24-Sep-13 7:33am
View
sir i am returning a we from form controller ek..public ActionResult ActionThatRetrieveAndAspx()
{
return View("WebForm1"); //Aspx file Views/Products/WebForm1.aspx
}
but the problem is that there and i hav written response.redirect("www.google.com) on paget load but it not working
siddharth629
29-Jul-13 2:50am
View
which text box ..????
when i will not hit enter multiple time then is working fine ..but iwant to stop it on multiple hit ..because when i m saveing data via Mouse then it will save only single record
siddharth629
29-Jul-13 2:47am
View
i m using Extjs .
siddharth629
29-Jul-13 2:43am
View
suppose i hv login form and hitting enter 2 or 3 time within a fraction of a second ..
siddharth629
29-Jul-13 2:42am
View
i have a identity key and rec number is always unique ..but other
record a same ..
siddharth629
15-Jul-13 2:12am
View
sir ,i have a .csv file on local hard disk and was reading that file and printing that on excel sheet but i was getting exception what ever i mention above on line New CsvReader(New StreamReader("CSVFileLocation"), True) when i set true as false (header)then is run successfully
siddharth629
10-Jul-13 5:01am
View
thanks sir.
siddharth629
8-Jul-13 5:24am
View
thaks sir.
but is does not working same error is appear. when ever i am usng /*theWorkbook.SaveCopyAs(fileName);
theWorkbook.Close(false, fileName, true);
byte[] data = ExportImportUtil.StreamFile(fileName);
File.Delete(fileName);*/
instead of byte[] data = new System.Text.ASCIIEncoding().GetBytes(theWorkbook.ToString());
then there is no error .
siddharth629
8-Jul-13 4:29am
View
????
siddharth629
5-Jul-13 0:32am
View
sir,
I HAVE Url for application When i am generating excel from that then i am getting problem but when ever i am doing this on my system by running code (local host) then excel report generated easily
i am generating the excel report . when ever i m generating that on my localhost then it is generate successfully but when ever i m generating on remote server then a authentication windows appear.
theWorkbook.SaveCopyAs(fileName);
theWorkbook.Close(false, fileName, true);
byte[] data = ExportImportUtil.StreamFile(fileName);
File.Delete(fileName);
return data;
response.ContentType = "application/xls";
response.OutputStream.Write(fileContent, 0, fileContent.Length);
response.AddHeader("content-disposition", "attachment;filename=" + fileName);
and my excel templet is avaialble in resource forlder in my forject
siddharth629
3-Jul-13 4:46am
View
Ok Sir next time will be much careful
siddharth629
16-Jan-13 3:25am
View
sir,
means in C# IT IS NOT POSSIBLE, BUT in java it could work.
siddharth629
28-Sep-12 6:19am
View
sorry
siddharth629
28-Sep-12 6:04am
View
lol
siddharth629
28-Sep-12 5:57am
View
Deleted
no i am not doing my homework. thanks for guessing sir
siddharth629
28-Sep-12 5:48am
View
thanks sir
siddharth629
28-Sep-12 5:45am
View
sir is it is possible to convert a string into integer . like "sid" to integer
siddharth629
13-Sep-12 15:15pm
View
ok .i am trying....
siddharth629
13-Sep-12 15:09pm
View
sir i have been count the length of string . and also compare that length to that digit .but after that i am not able to concate number of * to that particular string.
Show More