This is my Coding.
[code=c#]
Application newApp = new Application();
// Response.
// specifying the Source & Target file names
// c:\\abc\\Source .doc;
object Source = "F:\\Gokulraj\\ doc2.doc";
object Target = "F:\\Gokulraj\\ Temp\\gokul.pdf ";
object Unknown = Type.Missing;
...
Search Result
Collapse
2 results in 0.0043 seconds.
Keywords
Members
Tags
-
gokulraj84 started a topic Type mismatch. (Exception from HRESULT: 0x80020005 (DISP_E_TYPEMISMATCH)) in c#in .NETType mismatch. (Exception from HRESULT: 0x80020005 (DISP_E_TYPEMISMATCH)) in c#
-
Problems with SaveAs
Hi,
In word macro such thing worked perfectly:
With ActiveDocument
.SaveEncoding = msoEncodingUTF8
.SaveAs FileName:="c:\t est.doc",
FileFormat:=wdF ormatUnicodeTex t
End With
When I tried to use it in pure VB.net I put:
oWord = CreateObject("W ord.Application ")
With oWord.ActiveDoc ument
.SaveEncoding = msoEncodingUTF8
.SaveAs FileName:="c:\t est.doc",...