Guidance
指路人
g.yi.org
Guidance Forums / Rapid-Q Basic / PRINTER's PIXEL -> inches

Register 
新用户注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. PRINTER's PIXEL -> inches
#5633
Posted by: 2004-12-28 02:53:19
I can't find this documented anywhere, but printer.textout(x%,y%,s$,fc%,bc%) says that the x% and y% are in "pixels".  I want to place the text 1 inch into and 1.5 inches down from the top of the page. How do I convert from "inches" to "pixels". Will the conversion factor be the same for any printer, or do I need to somehow figure out the specific factor for whatever printer my client may have or may get in the future?

A second question, I have a form that the user has filled out. I want to place a button on the form, and have the image of the form, i.e. all the borders and labels and content of the edit boxes, etc, sent to the printer. Is there an easy way to do that?

Thanks,
David

Message2. Re: PRINTER's PIXEL -> inches
#5634
Posted by: boltex 2004-12-28 14:35:45
It's not the same from printer to printer. I think some value can be returned by windows that could be used as a "scale" factor to get some good results.

When developping printing applications i found useful to install the full acrobat PDF "maker" and use that as the "default printer" to save a LOT OF PAPER & INK while debugging ;)

bolt.

oh, btw, johnK rocks! did you guys had time to checkout those bew include files?

P.S. I am coding a printing program these days & I might find some answers, I'll tell you if i find anything worth it!
Message3. Re: PRINTER's PIXEL -> inches
#5638
Posted by: 2004-12-28 23:41:32
Thanks boltex.
 
For testing, I have used cutepdf, which generates a PDF file from the print output. But I have noticed that its output tended to be laid out differently than the couple of real printers I have to work with.

At least from you answer, I see I am not missing something obvious. I guess I just need to figure out the magic google keywords to research the topic. (i.e. eliminate helpful sites that tell you how to turn on the power switch on a printer :)

David
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Thu 2017-6-29  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0