Author Topic: Issue _PRINTIMAGE (Resolved)  (Read 6770 times)

0 Members and 1 Guest are viewing this topic.

FellippeHeitor

  • Guest
Re: Issue _PRINTIMAGE
« Reply #15 on: December 09, 2018, 01:41:33 pm »
The thing is that LPRINT also uses _PRINTIMAGE internally.

All _PRINTIMAGE really does is stretch the image you pass to it to fit the size settings that Windows reports for the current default printer.

QB64 doesn't deal with drivers or anything too deep. It just makes an api call and passes it an image.

If running in admin mode didn't give the expected results, I can only think of something misconfigured on your machine, as QB64 does exactly the same procedure, a native one from Windows API, no matter the OS version you're running.

Possible troubleshooting step:
- Reinstalling printer drivers

Offline Pete

  • Forum Resident
  • Posts: 2361
  • Cuz I sez so, varmint!
    • View Profile
Re: Issue _PRINTIMAGE
« Reply #16 on: December 09, 2018, 02:08:16 pm »
Really? Well makes sense, as LPRINT was needed to keep QuickBASIC compatibility. I actually thought that might be the case before I posted, which leads me to go back to my old saying... It's alright to talk out of your hat. Just make sure you're not sitting on it at the time! Now if you will excuse me, this hat won't unflatten itself you know and as far as this printer problem is concerned, it's a real head scratcher. I hope the driver is the issue so it gets resolved.

Pete
Want to learn how to write code on cave walls? https://www.tapatalk.com/groups/qbasic/qbasic-f1/

Offline Juanjogomez

  • Forum Regular
  • Posts: 117
    • View Profile
Re: Issue _PRINTIMAGE
« Reply #17 on: December 10, 2018, 02:31:00 am »
Well I'm sorry to say that it was not a problem with the printer driver. It also does not work with another inkjet printer that is connected to the network, nor with PDFCreator, which does not need a printer driver.
In the end I will have to format the computer and install Windows 10, if there is no other solution

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: Issue _PRINTIMAGE
« Reply #18 on: December 10, 2018, 03:40:10 am »
I can’t see why it’d work with Win10 and not Win7.  QB64 uses the same system calls for both. 

Some possible causes: https://social.technet.microsoft.com/forums/windows/en-US/043866b4-409d-4a54-b02c-0bbadfa10609/windows-7-printing-blank-pages

Another site suggests to:
Check printer settings and verify that the printer outputs in RAW format and not in EMF format. To do this, please refer to the following steps:

1) Click the Start button and click Control Panel.
2) Click View devices and printers under Hardware and Sound.
3) Right click HP Photosmart All-In-One C7250 Printer and click Printer properties.
4) Click the Advanced tab, click to clear the Enable advanced printing features check box, and then click OK.

(Probably not your printer type, but yours might have a similar setting.)



And here’s a few ideas:  https://helpdeskgeek.com/windows-7/ie-print-preview-blank/




Seems like a missing “Low” folder could be causing the problems, or an integrity level setting.
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline Juanjogomez

  • Forum Regular
  • Posts: 117
    • View Profile
Re: Issue _PRINTIMAGE (Resolved)
« Reply #19 on: December 24, 2018, 10:40:07 am »
I have reinstalled Windows 7 64 bits and it works fine. It would have been unconfigured.
thanks to everyone

FellippeHeitor

  • Guest
Re: Issue _PRINTIMAGE (Resolved)
« Reply #20 on: December 24, 2018, 10:43:30 am »
Good to hear!