Click here to Skip to main content
15,914,594 members
Home / Discussions / COM
   

COM

 
QuestionHelp!!! How to Add MS Visio Event in Unmanaged MFC? Pin
iomosi27-Mar-07 4:30
iomosi27-Mar-07 4:30 
QuestionCreating MPEG-1 from series of JPEG Pin
yudhisthira27-Mar-07 1:04
yudhisthira27-Mar-07 1:04 
QuestionMaking COM+ application [modified] Pin
Vlad~26-Mar-07 23:42
Vlad~26-Mar-07 23:42 
QuestionWithout ClassID Pin
_808625-Mar-07 23:52
_808625-Mar-07 23:52 
GeneralRe: Without ClassID [modified] Pin
Stephen Hewitt26-Mar-07 13:32
Stephen Hewitt26-Mar-07 13:32 
AnswerRe: Without ClassID Pin
Roger Stoltz26-Mar-07 2:30
Roger Stoltz26-Mar-07 2:30 
QuestionHow to convert Word to HTML Pin
PollyAnna33321-Mar-07 22:32
PollyAnna33321-Mar-07 22:32 
AnswerRe: How to convert Word to HTML Pin
Amr M. K.25-Mar-07 5:45
Amr M. K.25-Mar-07 5:45 
is word k.document
k.html inverted to html
////////////////////////
string filePath = "D:\\k.doc";
Word.ApplicationClass wordApplication = new Word.ApplicationClass();

// Opening a Word doc requires many parameters, but we leave most of them blank...
object o_nullobject = System.Reflection.Missing.Value;
object o_filePath = filePath;
Word.Document doc = wordApplication.Documents.Open(ref o_filePath,
ref o_nullobject, ref o_nullobject, ref o_nullobject, ref o_nullobject, ref o_nullobject,
ref o_nullobject, ref o_nullobject, ref o_nullobject, ref o_nullobject, ref o_nullobject,
ref o_nullobject, ref o_nullobject, ref o_nullobject, ref o_nullobject, ref o_nullobject);

// Here we save it in html format...
// This assumes it was called "something.doc"
string newfilename = "k.html";
object o_newfilename = newfilename;
object o_format = Word.WdSaveFormat.wdFormatHTML;
object o_encoding = Microsoft.Office.Core.MsoEncoding.msoEncodingUTF8;
object o_endings = Word.WdLineEndingType.wdCRLF;
// Once again, we leave many of the parameters blank.
// See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbawd11/html/womthSaveAs1_HV05213080.asp
// for full list of parameters.
wordApplication.ActiveDocument.SaveAs(ref o_newfilename, ref o_format, ref o_nullobject,
ref o_nullobject, ref o_nullobject, ref o_nullobject, ref o_nullobject, ref o_nullobject, ref o_nullobject,
ref o_nullobject, ref o_nullobject, ref o_encoding, ref o_nullobject,
ref o_nullobject, ref o_endings, ref o_nullobject);

// Report success...

// Finally, close original...
doc.Close(ref o_nullobject, ref o_nullobject, ref o_nullobject);

tkml

GeneralRe: How to convert Word to HTML Pin
PollyAnna33325-Mar-07 23:44
PollyAnna33325-Mar-07 23:44 
Questionexamples of direct sound by mingw . Pin
William.Zhang21-Mar-07 15:11
William.Zhang21-Mar-07 15:11 
QuestionMemory limit on Windows 2003 64 bit.... Pin
duronebis21-Mar-07 2:15
duronebis21-Mar-07 2:15 
QuestionCOM object create instance problem Pin
Itwymt20-Mar-07 23:39
Itwymt20-Mar-07 23:39 
AnswerRe: COM object create instance problem Pin
Steve S21-Mar-07 2:49
Steve S21-Mar-07 2:49 
GeneralRe: COM object create instance problem Pin
Itwymt21-Mar-07 3:00
Itwymt21-Mar-07 3:00 
GeneralRe: COM object create instance problem Pin
Steve S26-Mar-07 6:57
Steve S26-Mar-07 6:57 
GeneralRe: COM object create instance problem Pin
Itwymt12-Apr-07 22:16
Itwymt12-Apr-07 22:16 
QuestionHow to convert existing C# Windows Application to C# Web Application.. Pin
MPS_DotNet18-Mar-07 21:09
MPS_DotNet18-Mar-07 21:09 
AnswerRe: How to convert existing C# Windows Application to C# Web Application.. Pin
Colin Angus Mackay19-Mar-07 1:21
Colin Angus Mackay19-Mar-07 1:21 
AnswerRe: How to convert existing C# Windows Application to C# Web Application.. Pin
Dave Kreskowiak19-Mar-07 1:42
mveDave Kreskowiak19-Mar-07 1:42 
QuestionMapWindow ActiveX Control in MFC Application Pin
Maroon16-Mar-07 12:06
Maroon16-Mar-07 12:06 
Questionproblem with delete Pin
janadhana15-Mar-07 6:46
janadhana15-Mar-07 6:46 
AnswerRe: problem with delete Pin
Roger Stoltz15-Mar-07 7:13
Roger Stoltz15-Mar-07 7:13 
GeneralRe: problem with delete Pin
janadhana16-Mar-07 2:35
janadhana16-Mar-07 2:35 
GeneralRe: problem with delete Pin
Roger Stoltz16-Mar-07 3:15
Roger Stoltz16-Mar-07 3:15 
AnswerRe: problem with delete Pin
prasad_som15-Mar-07 18:38
prasad_som15-Mar-07 18:38 

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.