Click here to Skip to main content
15,900,461 members
Home / Discussions / C#
   

C#

 
GeneralRe: Generating a Unique ID. Pin
Ashfield7-Dec-09 1:10
Ashfield7-Dec-09 1:10 
GeneralRe: Generating a Unique ID. Pin
dan!sh 7-Dec-09 1:13
professional dan!sh 7-Dec-09 1:13 
GeneralRe: Generating a Unique ID. Pin
farshad1237-Dec-09 1:20
farshad1237-Dec-09 1:20 
GeneralRe: Generating a Unique ID. Pin
OriginalGriff7-Dec-09 1:37
mveOriginalGriff7-Dec-09 1:37 
AnswerRe: Generating a Unique ID. Pin
Abhinav S7-Dec-09 1:16
Abhinav S7-Dec-09 1:16 
GeneralRe: Generating a Unique ID. Pin
Ashfield7-Dec-09 1:19
Ashfield7-Dec-09 1:19 
GeneralRe: Generating a Unique ID. Pin
Abhinav S7-Dec-09 1:31
Abhinav S7-Dec-09 1:31 
QuestionMS OFFICE refence version create problem to change code of program Pin
ishika_kukki7-Dec-09 0:14
ishika_kukki7-Dec-09 0:14 
hi all,
i m working in a desktop application in which i added reference of MS WORD DLL and MS EXCEL DLL, and all reporting is Done in Word File and Excel File, project is working fine but whenever we installed program   in any other system which contain MS OFFICE of other version an error generated,
Example: -

if i include reference of ms office 97, word ddl than i open exiting file as
WordDoc = new Word.Document();
WordApp = new Word.ApplicationClass();

WordDoc=WordApp.Documents.Open(ref filename, ref missing, ref readOnly,
                        ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing);
WordApp.Visible = true;

if we include reference of ms word XP dll than we open file as

WordDoc=WordApp.Documents.Open(ref filename, ref missing, ref readOnly, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref isVisible, ref missing, ref missing, ref missing);
WordApp.Visible = true;

simiraly MS OFFICE 2003
includes some more parameter for OPEN method

my problem is that how can we include a Reference which work same for all version, because for every version of OFFICE we cannot make seperate code

thanks
in VB 6.0 we hav to add or change only reference and no need to change in code, but in C# .net i have to change the code as well as Reference of Office DLL.

thanks pls help me
AnswerRe: MS OFFICE refence version create problem to change code of program Pin
dan!sh 7-Dec-09 0:46
professional dan!sh 7-Dec-09 0:46 
GeneralRe: MS OFFICE refence version create problem to change code of program Pin
ishika_kukki7-Dec-09 18:35
ishika_kukki7-Dec-09 18:35 
AnswerRe: MS OFFICE refence version create problem to change code of program Pin
Eddy Vluggen7-Dec-09 2:54
professionalEddy Vluggen7-Dec-09 2:54 
QuestionHow to save textBox to a file Pin
tamir9017-Dec-09 0:10
tamir9017-Dec-09 0:10 
AnswerRe: How to save textBox to a file Pin
dan!sh 7-Dec-09 0:47
professional dan!sh 7-Dec-09 0:47 
AnswerRe: How to save textBox to a file Pin
JoeSharp7-Dec-09 0:48
JoeSharp7-Dec-09 0:48 
GeneralRe: How to save textBox to a file Pin
tamir9017-Dec-09 1:16
tamir9017-Dec-09 1:16 
QuestionHow to load large data to multiple filtered combobox's Pin
Sevententh6-Dec-09 23:43
Sevententh6-Dec-09 23:43 
QuestionSendKey Method Pin
M Riaz Bashir6-Dec-09 23:17
M Riaz Bashir6-Dec-09 23:17 
AnswerRe: SendKey Method Pin
Abhinav S6-Dec-09 23:24
Abhinav S6-Dec-09 23:24 
GeneralRe: SendKey Method Pin
M Riaz Bashir6-Dec-09 23:55
M Riaz Bashir6-Dec-09 23:55 
QuestionOnGotFocus Pin
Tagamoga6-Dec-09 22:56
Tagamoga6-Dec-09 22:56 
AnswerRe: OnGotFocus Pin
Shameel6-Dec-09 23:08
professionalShameel6-Dec-09 23:08 
GeneralRe: OnGotFocus Pin
Tagamoga6-Dec-09 23:17
Tagamoga6-Dec-09 23:17 
GeneralRe: OnGotFocus Pin
Shameel7-Dec-09 6:53
professionalShameel7-Dec-09 6:53 
Questiondatabase connection problem Pin
Erdinc276-Dec-09 21:48
Erdinc276-Dec-09 21:48 
AnswerRe: database connection problem Pin
lalit146-Dec-09 22:21
lalit146-Dec-09 22:21 

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.