It is currently Fri Jun 22, 2018 6:34 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: PB5.61 Win7 and Printer_Lib
PostPosted: Thu Dec 07, 2017 2:36 am 
Offline
Always Here
Always Here

Joined: Fri Oct 23, 2009 2:33 am
Posts: 5774
Location: Wales, UK
With an earlier version PB on either Win7x86 or XPx86, the Printer_Lib was working fine.

Using the Printer_Lib Include file.

However, now on Win 7x64 with PB5.61 32bit, I have a very strange issue with paper size.

I'm printing on DL Envelope paper size in Portrait orientation. Paper size is 110mm x 220mm (Approx 416pix x 832pix).

Results with Print-Preview and Print are the same.

Of the print devices available on my PC, Cute PDF and MS XPS Document Writer are perfect, but for the one physical Device (Canon MG3250 inkjet), failure.

For some reason I cannot fathom, the print 'image' size is incorrect for the Canon. Width is 416pix, but Height is 756pix (200mm instead of 220mm).

Has anyone hit a similar issue?

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
Reply with quote  
 Post subject: Re: PB5.61 Win7 and Printer_Lib
PostPosted: Sat Jan 20, 2018 2:50 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Wed Oct 29, 2003 4:35 pm
Posts: 10405
Location: Beyond the pale...
Did you use this same printer on 32-bit Windows where you had no issue or is this a different printer?

Ordinarily I would guess that this would be down to a physical offset of the printer in question; i.e. a 'hard' margin in which the printer is unable to print, but if all worked ok under Win x86 then I would suggest this might be a x64 driver issue. Did you install a 64-bit driver from the manufacturer and is it specifically for the printer in question or a 'compatible' one?

You can check any physical offsets with the GetDeviceCaps_() function.

_________________
I may look like a mule, but I'm not a complete ass.


Top
 Profile  
Reply with quote  
 Post subject: Re: PB5.61 Win7 and Printer_Lib
PostPosted: Sun Jan 21, 2018 11:49 pm 
Offline
Always Here
Always Here

Joined: Fri Oct 23, 2009 2:33 am
Posts: 5774
Location: Wales, UK
sRod!

Yeah, the printing worked perfectly on WinXP 32bit, tested with the Canon and an old HP (which got offended by the arrival of the Canon and decided that screwing the paper up is a good way to express this).

So, I tried to botch the scaling and managed to make all printing output fail :wink: GetDeviceCaps_() - good tip.

I have not been working on the app for a while, had to do some non PB stuff. If I look into it again I might find something but I do seem to recall that the Lib was designated as 32bit only by ABB Klaus, not sure why that would be.

Searched the forum for clues and found that people were asking for a decent printer lib in PB back in 2006, so maybe, maybe.

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye