Hi friends,
I have developed a c# desktop application in which i need to print a file(document like .doc, .rtf) with same styles(fonts,alignment, color,size etc).
I have converted the text in a rich text box to .doc and saved to a path when i am trying to print that file i am losing styles(fonts,alignment, color,size etc).
So. Please help me with code or example
THANKS IN ADVANCE
Loading
Enrico AlfredoPosted Dec 4, 2014, 4:33 AM
I am currently implementing a similar feature in an internal-use application using Microsoft classes in addition to a programming toolkit (leadtools) that I use to load document files (DOC, DOX, RTF) as raster images, and then draw them directly on the printer DC.
Loading the document files as images gives me more control over the width and height of the printed file. You can find more information here:
http://support.leadtools.com/CS/forums/5641/ShowPost.aspx
Manish Kumar ChoudharyPosted Nov 25, 2014, 6:49 AM
Read these links, it will help you
http://msdn.microsoft.com/en-us/library/ms404294%28v=vs.110%29.aspx
http://www.codeproject.com/Tips/733680/Printing-and-Previewing-multiple-pages-in-Csharp