Click here to Skip to main content
15,905,325 members
Home / Discussions / C#
   

C#

 
GeneralRe: Get backup status using WMI Pin
Anonymous17-Oct-04 17:41
Anonymous17-Oct-04 17:41 
GeneralRe: Get backup status using WMI Pin
WillemM17-Oct-04 22:50
WillemM17-Oct-04 22:50 
Questionhow to remove an element from an array Pin
tom_dx17-Oct-04 4:48
tom_dx17-Oct-04 4:48 
AnswerRe: how to remove an element from an array Pin
CerebralKungFu17-Oct-04 5:21
CerebralKungFu17-Oct-04 5:21 
GeneralRe: how to remove an element from an array Pin
tom_dx17-Oct-04 7:36
tom_dx17-Oct-04 7:36 
GeneralRe: how to remove an element from an array Pin
CerebralKungFu17-Oct-04 8:42
CerebralKungFu17-Oct-04 8:42 
GeneralHelp Please... Waqas Butt Pin
| Muhammad Waqas Butt |17-Oct-04 4:41
professional| Muhammad Waqas Butt |17-Oct-04 4:41 
GeneralRe: Help Please... Waqas Butt Pin
Christian Graus17-Oct-04 10:56
protectorChristian Graus17-Oct-04 10:56 
GeneralRe: Help Please... Waqas Butt Pin
| Muhammad Waqas Butt |18-Oct-04 15:07
professional| Muhammad Waqas Butt |18-Oct-04 15:07 
GeneralRe: Help Please... Waqas Butt Pin
Christian Graus18-Oct-04 15:22
protectorChristian Graus18-Oct-04 15:22 
GeneralRe: Help Please... Waqas Butt Pin
| Muhammad Waqas Butt |18-Oct-04 21:44
professional| Muhammad Waqas Butt |18-Oct-04 21:44 
GeneralInterprocess communication Pin
petst17-Oct-04 3:00
petst17-Oct-04 3:00 
GeneralRe: Interprocess communication Pin
CerebralKungFu17-Oct-04 4:55
CerebralKungFu17-Oct-04 4:55 
GeneralRe: Interprocess communication Pin
petst17-Oct-04 5:40
petst17-Oct-04 5:40 
GeneralRe: Interprocess communication Pin
CerebralKungFu17-Oct-04 6:31
CerebralKungFu17-Oct-04 6:31 
GeneralRe: Interprocess communication Pin
petst17-Oct-04 6:55
petst17-Oct-04 6:55 
GeneralURL Encoding - prevent "|" encoding as %7C Pin
Helix017-Oct-04 2:06
Helix017-Oct-04 2:06 
GeneralRe: URL Encoding - prevent "|" encoding as %7C Pin
WillemM17-Oct-04 7:25
WillemM17-Oct-04 7:25 
GeneralRe: URL Encoding - prevent "|" encoding as %7C Pin
Helix018-Oct-04 2:15
Helix018-Oct-04 2:15 
QuestionHow using class from another project Pin
Mikel Fayad16-Oct-04 22:50
Mikel Fayad16-Oct-04 22:50 
AnswerRe: How using class from another project Pin
nxde200016-Oct-04 23:26
nxde200016-Oct-04 23:26 
GeneralRe: How using class from another project Pin
Mikel Fayad17-Oct-04 21:55
Mikel Fayad17-Oct-04 21:55 
GeneralUse Graph.Chart in MSWord Pin
nxdess16-Oct-04 21:45
sussnxdess16-Oct-04 21:45 
Hi I'm trying to write some code in C# for displaying a MSChart in Microsoft Word. Ofcourse, I use automation. My code works well with libraries Word 9, MSGraph 8 (of Office 2000). The problem come when I use Office 97 (MSGraph 8, Word 8). After debuging, I see it's because the Object represented for the Chart cannot be casted to the Graph.Chart type. Following is a part of the code:

private object oMissing = System.Reflection.Missing.Value;
Word.Range wrdRng;
Word.InlineShape oShape;

...........
........

object oClassType = "MSGraph.Chart.8";

oShape = wrdRng.InlineShapes.AddOLEObject(ref oClassType, ref oMissing, ref oMissing, ref oMissing, ref oMissing,ref oMissing, ref oMissing, ref oMissing);

Graph.Chart chart= (Graph.Chart) oShape.OLEFormat.Object;

The last statement throw an exception System.InvalidCastException with a message : Additional information: Specified cast is not valid.
I also use a similar code for VB6 from address: support.microsoft.com/support/kb/articles/q244/5/89.asp but the result doesn't change
Help me!
Thanks!


GeneralDataTable already belongs to another DataSet Pin
myNameIsRon16-Oct-04 20:40
myNameIsRon16-Oct-04 20:40 
GeneralRe: DataTable already belongs to another DataSet Pin
Heath Stewart16-Oct-04 20:49
protectorHeath Stewart16-Oct-04 20:49 

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.