Solved

Reading MS Word line by line to save as Tiff Image using C#.Net

Posted on 2007-03-26
3
285 Views
Last Modified: 2013-12-17
Hi All
I have special requirment. In this, I need to read Ms Word document line by line with the all the Font and display settings. That's i have to know how many characters in an line and all the things. For e.g
If i'm reading an document and saving into an tiff image. The line's are getting collapsed soem time and the fonts are goes out of the control. If any body have any suggestion on this. Please help me out
0
Comment
Question by:santhimurthyd
3 Comments
 

Accepted Solution

by:
jdaragon earned 250 total points
ID: 18792317
Alas, the short answer is that you cannot do this.  

Word (like most modern word processors) doesn't really embody the concept of a line of text (except in special cases like a header...). Text flows within a paragraph depending on several factors : font size, the actual characters, and the physical characteristics (page size, margin settings, etc.) of the printer device context selected.

Most (if not all) software that renders Word to TIFF does it by implementing a printer driver based on the raster printer model. This means that Word (or whatever other Windows program is generating print) is responsible for rendering the text into the DC, and the driver is called for each line of pixels that is produced.  It's pretty easy to take each line of pixels, pass them into your compression routines, and generate a TIFF file without knowing *anything* about Word file structures, font metrics or anything else.

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now