Click here to Skip to main content
15,913,315 members
Home / Discussions / C#
   

C#

 
AnswerRe: column in datagrid Pin
paas5-Aug-08 3:24
paas5-Aug-08 3:24 
GeneralRe: column in datagrid Pin
benjamin yap5-Aug-08 3:53
benjamin yap5-Aug-08 3:53 
GeneralRe: column in datagrid Pin
paas5-Aug-08 4:16
paas5-Aug-08 4:16 
QuestionStore/retrieve font in user settings and isolated storage Pin
AndrusM5-Aug-08 2:14
AndrusM5-Aug-08 2:14 
AnswerRe: Store/retrieve font in user settings and isolated storage Pin
led mike5-Aug-08 5:03
led mike5-Aug-08 5:03 
QuestionWhere do unhandled exceptions in event handlers go? Pin
JoeRip5-Aug-08 1:29
JoeRip5-Aug-08 1:29 
AnswerRe: Where do unhandled exceptions in event handlers go? Pin
astanton19785-Aug-08 2:26
astanton19785-Aug-08 2:26 
QuestionError in copying excel chart to clipboard Pin
dan!sh 5-Aug-08 1:21
professional dan!sh 5-Aug-08 1:21 
I am trying to create an excel chart using reflection. I need to show the chart on a separate form. The chart gets created accurately but the code throws error while copying it to clipboard. Here is the code peice I am using to copy chart to clipboard.

// Copy the chart area to clipboard
oChartArea = oXLChart.GetType().InvokeMember(
             "ChartArea", BindingFlags.GetProperty, null, oXLChart, null);

---> Exception in the line below
---> Exception: Exception has been thrown by the target of an invocation.
---> Inner Exception:  Select method of ChartArea class failed.
oChartArea.GetType().InvokeMember(
  "Select", BindingFlags.InvokeMethod, null, oChartArea, null);

oChartArea.GetType().InvokeMember(
  "Copy", BindingFlags.InvokeMethod, null, oChartArea, null);

// get the chart in bitmap object from clipboard
oImage = new Bitmap((Image)Clipboard.GetImage());

// Set the chart as the image for the picturebox
oPic.Image = oImage;
oPic.SizeMode = PictureBoxSizeMode.AutoSize;
oPic.Left = 10;
oPic.Top = 20;
Clipboard.Clear();


Seeking your help....thanks
QuestionHow to show all items in DataGridViewComboBoxCell Pin
T.EDY5-Aug-08 0:22
T.EDY5-Aug-08 0:22 
AnswerRe: How to show all items in DataGridViewComboBoxCell Pin
nelsonpaixao5-Aug-08 13:12
nelsonpaixao5-Aug-08 13:12 
QuestionHow to read an image file Pin
Hari_10104-Aug-08 23:40
Hari_10104-Aug-08 23:40 
AnswerRe: How to read an image file Pin
Ashfield5-Aug-08 1:11
Ashfield5-Aug-08 1:11 
GeneralRe: How to read an image file Pin
Hari_10105-Aug-08 1:22
Hari_10105-Aug-08 1:22 
GeneralRe: How to read an image file Pin
astanton19785-Aug-08 2:28
astanton19785-Aug-08 2:28 
GeneralRe: How to read an image file Pin
Alan N5-Aug-08 6:29
Alan N5-Aug-08 6:29 
GeneralRe: How to read an image file Pin
Ashfield5-Aug-08 8:28
Ashfield5-Aug-08 8:28 
QuestionParsing color names Pin
AmitDey4-Aug-08 23:19
AmitDey4-Aug-08 23:19 
AnswerRe: Parsing color names Pin
Tony Richards4-Aug-08 23:23
Tony Richards4-Aug-08 23:23 
QuestionHow to search inside pdf files ? Pin
hdv2124-Aug-08 22:50
hdv2124-Aug-08 22:50 
GeneralRe: How to search inside pdf files ? Pin
dojohansen4-Aug-08 23:26
dojohansen4-Aug-08 23:26 
GeneralRe: How to search inside pdf files ? Pin
hdv2124-Aug-08 23:46
hdv2124-Aug-08 23:46 
AnswerRe: How to search inside pdf files ? Pin
blackjack21505-Aug-08 0:54
blackjack21505-Aug-08 0:54 
GeneralRe: How to search inside pdf files ? Pin
hdv2125-Aug-08 2:59
hdv2125-Aug-08 2:59 
AnswerRe: How to search inside pdf files ? Pin
astanton19785-Aug-08 2:48
astanton19785-Aug-08 2:48 
QuestionExcel Data Problem Pin
Syed Shahid Hussain4-Aug-08 22:41
Syed Shahid Hussain4-Aug-08 22:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.