Write to Ms word document ???
-
Hi all, ı wanna learn that how can i write as html on a word document. When i send the string with .typetext(); it writes it as a string. How can i do that ?? thx...
thanks for everything i have...
-
Hi all, ı wanna learn that how can i write as html on a word document. When i send the string with .typetext(); it writes it as a string. How can i do that ?? thx...
thanks for everything i have...
-
Hi all, ı wanna learn that how can i write as html on a word document. When i send the string with .typetext(); it writes it as a string. How can i do that ?? thx...
thanks for everything i have...
In order to write *anything* on a word document, you have to make sure you lay it on a flat surface, and smooth it out completely (wrinkles in the document tend to distort newly added text). Then - and only then - can you write on the document. After you're done writing on the document, make sure you spray some sort of fixative over the text so it doesn't run when you spill fluids on the document.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 -
In order to write *anything* on a word document, you have to make sure you lay it on a flat surface, and smooth it out completely (wrinkles in the document tend to distort newly added text). Then - and only then - can you write on the document. After you're done writing on the document, make sure you spray some sort of fixative over the text so it doesn't run when you spill fluids on the document.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001Alternatively, he can always use some form of whiteout on the screen whenever he makes a mistake.
Deja View - the feeling that you've seen this post before.
-
Alternatively, he can always use some form of whiteout on the screen whenever he makes a mistake.
Deja View - the feeling that you've seen this post before.
Pete O'Hanlon wrote:
use some form of whiteout on the screen whenever he makes a mistake
Ah, yes, that's always the classic solution :laugh:
"The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
-
Hi all, ı wanna learn that how can i write as html on a word document. When i send the string with .typetext(); it writes it as a string. How can i do that ?? thx...
thanks for everything i have...
-
Hi Talhakosen, Did you read this artikel? : http://www.codeproject.com/KB/aspnet/wordapplication.aspx[^]
yes i have already seen that article but i didnt type my text as html on word document. I found this object pasteType = Word.WdPasteDataType.wdPasteHTML; range.PasteSpecial(ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref pasteType ,ref oMissing, ref oMissing); but it gives me an error says {"The specified data type is unavailable."}
thanks for everything i have...
-
yes i have already seen that article but i didnt type my text as html on word document. I found this object pasteType = Word.WdPasteDataType.wdPasteHTML; range.PasteSpecial(ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref pasteType ,ref oMissing, ref oMissing); but it gives me an error says {"The specified data type is unavailable."}
thanks for everything i have...
I found the solution, maybe somebody need it... to write as html on c# first take clipboard as html then use stringbuilder Object m = System.Reflection.Missing.Value; DataObject clipDO = new DataObject(); clipDO.SetData(DataFormats.Html, HtmlClipboardData(strHTML)); Clipboard.SetDataObject(clipDO, true); // Save to clipbaord object typeHtml = (object)Word.WdPasteDataType.wdPasteHTML; s.PasteSpecial(ref m, ref m, ref m, ref m, ref typeHtml, ref m, ref m); http://www.codeproject.com/script/Membership/Profiles.aspx?mid=252028 knowledge is valuable when it is shared !!!) and nobody has a right to make fun with anyone!! thx all
thanks for everything i have...
-
I found the solution, maybe somebody need it... to write as html on c# first take clipboard as html then use stringbuilder Object m = System.Reflection.Missing.Value; DataObject clipDO = new DataObject(); clipDO.SetData(DataFormats.Html, HtmlClipboardData(strHTML)); Clipboard.SetDataObject(clipDO, true); // Save to clipbaord object typeHtml = (object)Word.WdPasteDataType.wdPasteHTML; s.PasteSpecial(ref m, ref m, ref m, ref m, ref typeHtml, ref m, ref m); http://www.codeproject.com/script/Membership/Profiles.aspx?mid=252028 knowledge is valuable when it is shared !!!) and nobody has a right to make fun with anyone!! thx all
thanks for everything i have...
Hi TALHAKOSEN, I know it's been 2 years on this stream, But is there any chance that you can tell me what's HtmlClipboardData(strHTML)? Thanks for sharing your knowledge. N