16,007,932 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 rajgaikwad01 (Top 10 by date)
rajgaikwad01
7-Sep-17 6:51am
View
I did google but not getting proper solution
rajgaikwad01
14-Mar-14 11:52am
View
I used it as a Server control by adding runat="server" to it.
I tried by removing runat="server" also but having same issue.
rajgaikwad01
14-Mar-14 11:47am
View
Hi Sergey,
My page is having editor with Id: "editor1".
I am getting the value on code behind but not in the Javascript written on the same page
Below is the Control code:
<asp:TextBox ID="editor1" runat="server" ClientIDMode="Static" TextMode="MultiLine"
Rows="30" Style="width: 60%" CssClass="tinymce" />
rajgaikwad01
17-Dec-13 2:40am
View
how you want the result?
if you add 123.456 then you want 123.45 or only 45
and same for rounded digit like 123 then you want 123.00 or only 00
rajgaikwad01
17-Dec-13 2:27am
View
Deleted
Hi
This may help you
http://www.codeproject.com/Questions/412468/Excel-csharp-net-retrieving-data-without-opening-e
rajgaikwad01
16-Dec-13 8:01am
View
Hi Gaurav,
Thanks for reply.
Is there any other option to fill DGV with DataGridViewComboBoxColumn.
Because use of for loop will lower down the application performance in my case.
because I have editable grid which will interact with the Database.
rajgaikwad01
10-Dec-13 5:10am
View
I want to use Grid which will work same as a Excel sheet like Copy, paste multiple rows, Shortcuts like Ctrl + d etc.
These can not be possible with grid so I am trying to use Excel as Control. for that I got this idea to use Excel with WB control.
If you have any other option to do the same please suggest.
rajgaikwad01
10-Dec-13 5:00am
View
Hi,
I tried it on Button click only but I am getting Null value.
Is there any option to upload complete code so you can check it.
rajgaikwad01
10-Dec-13 4:42am
View
Hi,
I tried with DocumentText but I am getting null value.
Only I am getting value for DocumentTitle property as "test.xlsx".
I have searched on Google for this issue so I saw the examples given with WB have Application.DoEvent so I tried same.
if I am checking "eBrowser.ReadyState" it always returns "Uninitialized".
rajgaikwad01
10-Dec-13 0:25am
View
Hi Ziee-M,
Thanks for your reply
Please see the below code:
private void eBrowser_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
try
{
Application.DoEvents();
HtmlDocument hDoc = eBrowser.Document;
}
catch (Exception)
{
throw;
}
}
but here I am getting hDoc as Null.
I want to read updated Excel file from WB control.
Is there any option to get Excel data in Data Table.
I tried to read data from Excel in Data table but I am getting only default data which was present in Excel sheet. But if I am updating Excel using WB control that changes we need.
Please see the below code which I have written to get data from Excel:
private DataTable GetExcelData(Excel.Workbook wb)
{
DataTable dTable = new DataTable();
DataColumn dColumn = null;
try
{
Excel.Worksheet wSheet = (Excel.Worksheet)wb.Worksheets.get_Item(1);
Excel.Range wRange = wSheet.UsedRange;
if (wRange.Columns.Count > 0)
{
for (int cCnt = 1; cCnt <= wRange.Columns.Count; cCnt++)
{
dColumn = new DataColumn();
dColumn.DataType = System.Type.GetType("System.String");
string cName = (string)(wRange.Cells[1, cCnt] as Excel.Range).Value2;
dColumn.ColumnName = cName; //cCnt.ToString();
dTable.Columns.Add(dColumn);
}
for (int rCnt = 2; rCnt <= wRange.Rows.Count; rCnt++)
{
DataRow dRow = dTable.NewRow();
int CellEnpty = 0;
for (int cCnt = 1; cCnt <= wRange.Columns.Count; cCnt++)
{
string sCellValue = "";
double ConvertVal = 0.0;
try
{
sCellValue = (string)(wRange.Cells[rCnt, cCnt] as Excel.Range).Value2;
}
catch (Exception)
{
ConvertVal = (double)(wRange.Cells[rCnt, cCnt] as Excel.Range).Value2; ;
sCellValue = ConvertVal.ToString();
}
if (sCellValue != null)
{
if (sCellValue != "")
{
dRow[cCnt - 1] = sCellValue;
}
else
{
CellEnpty += 1;
}
}
else
{
CellEnpty += 1;
}
}
if (CellEnpty < 3)
{
dTable.Rows.Add(dRow);
}
}
}
return dTable;
}
catch (Exception)
{
throw;
}
}
Show More