15,789,463 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 Python questions
View PHP 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 Mallesh Shantagiri (Top 12 by date)
Mallesh Shantagiri
12-May-17 8:41am
View
thank you @Ralf meier
Mallesh Shantagiri
9-May-17 5:28am
View
@Ralf Meier , In my above code , int j and int K are the location of picture box , by keeping j as constant and increasing K value , i can create one column of rectangles on top of image(picture box image), Now i need a logic to draw the rectangles which should cover whole picture box based on size of picture box ( using graphics in c#), .for example picture box width 600 and height 400 , i want to draw 24 rectangles on it , how can i do that . ( picture box receives live images as input) . i hope you got my problem , its very simple , i just need a for loop to draw rectangles in it , but i'm not getting how to write that logic.
Mallesh Shantagiri
9-May-17 3:16am
View
i have drawn one column of rectangles , just by keeping image x axis as constant and Y axis as increment with total height/4 , but now i want to do that for the whole image.
Mallesh Shantagiri
9-May-17 3:08am
View
Yes , i want those rectangles will be the part of image . On top of the image size .
Mallesh Shantagiri
9-May-17 2:09am
View
i just want those on top of image , those should be in order.
Mallesh Shantagiri
26-Sep-16 7:05am
View
@Richard MacCutchan ,
i got this in macro recording ,
ActiveChart.SetSourceData Source = rng("Trend_NCM!$A$2:$AD$7");
and i tried for the solution , but i didn't get the result in c# . if possible please explain it to me.
ChartObjects chartObjs = (ChartObjects)ws.ChartObjects();
ChartObject chartObj = chartObjs.Add(150, 20, 300, 300);
Chart xlChart = chartObj.Chart;
var charts = ws.Charts;
var chart = (Chart)charts.Add();
chart.SetSourceData
chart.SetSourceData(ws.Name + "!" + dataSheet.UsedRange.Address, Excel.XlRowCol.xlColumns);
Mallesh Shantagiri
26-Sep-16 6:40am
View
xlWorkBook = app.Workbooks.Open("E:\\test\\DT", 0, false, 5, "", "", false,
Microsoft.Office.Interop.Excel.XlPlatform.xlWindows, "", true, false, 0, true, 1, 0); //@"H:\TestFile.xlsx"
sheet = (Excel.Worksheet)xlWorkBook.Sheets.get_Item(1);
// app.Workbooks.Open(@"E:\\test\\DTS-CODE");//Open the work book
// sheet = app.Sheets["Trend NCM"];//Select the sheet the chart is on
chartObj = sheet.ChartObjects("Chart 1");//Select the ChartObject
chart = chartObj.Chart; //Select the Chart from the ChartObject
series = chart.SeriesCollection(1);//Select the series you are changing
//// series.Values = (Excel.Range)sheet.get_Range(sheet.Cells[2, 2], sheet.Cells[4, 5]);
////
series.Values = sheet.Range["A3:A7"];
i tried above but no change in the result.
Mallesh Shantagiri
26-Sep-16 5:33am
View
Hello Richard , I will try make you clear , I just want to update or increase the chart data range , now in my excel the data range for chart is =Trend_NCM!$A$2:$AB$7 , but i want to update that chart through c# , if i updates any new data in AC column , the chart data range should update as
=Trend_NCM!$A$2:$AC$7 , so on .
i'm trying on chart series collections ,but i'm not getting ,how to increase it by c# program . please let me know any idea to solve this.
Mallesh Shantagiri
8-Aug-16 7:26am
View
Hello kenneth ,
Thanks for your response , I'm working on a project and i got the error .i will check the link.
Mallesh Shantagiri
8-Aug-16 7:04am
View
Hi, I have updated the question , Please let me know how can i solve it.
Mallesh Shantagiri
8-Aug-16 6:57am
View
Hi , When i call the method as below
percentile(myarray , K); ,
Error : An object reference required for non -static field ,method,property.
Mallesh Shantagiri
15-Mar-15 3:32am
View
I am Getting Selected columns index name With addition of "#",after that i am splitting each,here is the code.
public void textboxcontents(string hashedstring)
{
string[] unhash = hashedstring.Split('#');
// List<string>datas =new List<string>();
string te="";
richTextBox1.Clear();
ArrayList indexes = new ArrayList();
foreach (string s in unhash)
{
te = te +"\t"+ s+"\t";
int idx = getColumnIndex(s, dataGridView1.Columns);
if (idx != -1)
{
indexes.Add(idx);
}
}
richTextBox1.AppendText("\t" + "My-Reports" + "\n" + "\n");
richTextBox1.AppendText("------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------"+Environment.NewLine);
richTextBox1.Text = richTextBox1.Text + te + Environment.NewLine;
string data = string.Empty;
foreach (DataGridViewRow row in dataGridView1.Rows)
{
foreach (int idx in indexes)
{
data = data + String.Format("{0}",row.Cells[idx].Value) + "\t" + "\t";
}
richTextBox1.AppendText("\t"+ data + "\n");
data = string.Empty;
}
Show More