Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2007-03-26
3
Medium Priority
?
294 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 

Accepted Solution

by:
jdaragon earned 1000 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

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

721 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