Author Topic: Turn page 90 degrees  (Read 3855 times)

0 Members and 1 Guest are viewing this topic.

Offline Pete

  • Forum Resident
  • Posts: 2361
  • Cuz I sez so, varmint!
    • View Profile
Re: Turn page 90 degrees
« Reply #15 on: November 21, 2018, 03:44:06 pm »
Actually, my Win 10 command prompt does not recognize SetPrinter.

GoFigure /?

Anyway, no worries. I don't need this for any of my projects. I was just hunting a bit for alternatives, since esc codes are no longer supported. I suppose being able to print over a network or USB printer is just compensation for the loss.

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

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: Turn page 90 degrees
« Reply #16 on: November 21, 2018, 03:54:34 pm »
SetPrinter has been around since Win Server 2000; it should definitely be in your Win 10 machine.  https://docs.microsoft.com/en-us/windows/desktop/printdocs/setprinter

Try opening a cmd prompt with admin privileges and let me know what happens.  I'm using Win10 and have no issues with it.  I'd love to sort out what the differences might be.
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline Pete

  • Forum Resident
  • Posts: 2361
  • Cuz I sez so, varmint!
    • View Profile
Re: Turn page 90 degrees
« Reply #17 on: November 21, 2018, 04:07:29 pm »
Nope. Opened as admin and it still can't find it. BTW, just to be absolutely sure, I not only typed SetPrinter /? but I also copied and pasted it from your post, so no typos.

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

Offline TempodiBasic

  • Forum Resident
  • Posts: 1792
    • View Profile
Re: Turn page 90 degrees
« Reply #18 on: November 21, 2018, 05:14:21 pm »
Hi Pete
from the link posted https://docs.microsoft.com/en-us/powershell/module/printmanagement/set-printer?view=win10-ps
I can understand that after opening a cmd window you must type before "Powershell"   and then set-printer...
yes be careful to put the - between set and printer.
More than Set-Printer in PowerShell you can use
Set-printerconfiguration
https://docs.microsoft.com/en-us/powershell/module/printmanagement/set-printconfiguration?view=win10-ps
and
Set-Printerproperty
https://docs.microsoft.com/en-us/powershell/module/printmanagement/set-printerproperty?view=win10-ps
....
ok and in Linux or Macos? How is possible to change from landscape to protrait and viceversa?
Programming isn't difficult, only it's  consuming time and coffee

Offline Pete

  • Forum Resident
  • Posts: 2361
  • Cuz I sez so, varmint!
    • View Profile
Re: Turn page 90 degrees
« Reply #19 on: November 21, 2018, 07:19:57 pm »
OK, I'll try set-printer /? instead of SetPrinter /?

I'm in Powershell...

PS C:\Windows\System32>set-printer /?

No help info is generated. It just immediately goes back to the prompt, so...

PS C:\Windows\System32>set-printer /?
PS C:\Windows\System32>

That's what I get.

Usually Microsoft includes a help screen but maybe there isn't one for this command.

Pete
« Last Edit: November 21, 2018, 08:25:32 pm by Pete »
Want to learn how to write code on cave walls? https://www.tapatalk.com/groups/qbasic/qbasic-f1/

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: Turn page 90 degrees
« Reply #20 on: November 21, 2018, 08:01:10 pm »
Looking on my machine, SetPrinter is in a "Windows Resource Kit" folder, so it may have been something I downloaded in a package in the past.  I think all that's needed to use it is the exe itself, so give it a try and see what you get. 
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!