RE: Printing in Windows
- Posted by Jonas Temple <jktemple at yhti.net> Mar 13, 2001
- 441 views
Derek, > when printing in Windows you have to do all the positioning yourself. Unfortunately, I know. :( My last Windows printing was done with Borland C++/OWL and I lost many strands of hair trying to get that right (I was never completely satisfied with the end product but the printout was produced). > > To ensure that words begin on a new line, you must always measure the > size > of the text you intend to fit on the line and if it doesn't fit, reduce > it > by one word and try again until it does fit. In OWL I used a function called getTextExtent which would give the amount of space the text would occupy on the page. What would be comparable from Win32Lib's perspective? > Its very messy and prone to easy mistakes, particularly when using > multiple > fonts etc... Well if I succeed and am pleased with what/how I got to the end results I'll send it to Rob so others will have something to start with. Jonas