- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hey all, just wanted to say hi, first time poster. I have a really odd printing issue. All of my printings are about 10% of the actual size they should be. In otherwords if I am printing an excel spreadsheet then it will appear tiny in the top left hand corner of the page. I am on Win98se and the printer in question is an HP Laserjet 6l. I have taken a look at the scaling properties and they are set correctly. If anyone has any thoughts I would greatly appreciate it. Thanks in advance.
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is this a Fortran-related problem?
Steve
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I had this problem when I first started writing CVF code. The problem is the resolution of the printer versus the screen. You are probably generating your graphics based on screen resolution instead of printer resolution. Your laser printer is probably at least 10 times finer resolution than your screen which would, in that case, result in the graphics being about 1/10 the size you would like it to be on the printer. You should call PrintDlg to select your printer. The structure returned from this function will contain the handle to the device context for the selected printer. You then call GetDeviceCaps with the handle to the device context, to obtain the horizontal resolution, vertical resolution, physical offsets, physical width and height of the page, etc. From these variables, you can treat the printer as if you were writing to the screen using the proper scale factors.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page