Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » [BUG & Patch] Printing under POSIX dosen't work.
[BUG & Patch] Printing under POSIX dosen't work. [message #40632] Sat, 24 August 2013 13:06 Go to next message
Klugier is currently offline  Klugier
Messages: 1075
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello,

It seems that POSIX printing dosen't work. The main problem with POSIX printing is that we are creating wrong "lp" command on some configuration. The correct command should look like this:

lp -d network-printer -o media=A5,Default -o number-up=1 -n 1


Insted of:
lp -d network-printer -o media=,Default -o number-up=1 -n 1

what is definitly incorrect.

I enclosed patched source file (CtrlLib/PrinterJob.cpp). What I have changed?
- The printing code is more secure (More logical conditions).
- "A4" is now the default page format in PrinterDlg.
- Minor fixes.

P.S.
"lp" - console utility which is used to print the files.

Sincerely,
Klugier


U++ - one framework to rule them all.

[Updated on: Sat, 24 August 2013 13:08]

Report message to a moderator

Re: [BUG & Patch] Printing under POSIX dosen't work. [message #40648 is a reply to message #40632] Sun, 25 August 2013 11:46 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Patch applied, thanks.

Mirek
Re: [BUG & Patch] Printing under POSIX dosen't work. [message #40650 is a reply to message #40648] Sun, 25 August 2013 22:04 Go to previous messageGo to next message
Klugier is currently offline  Klugier
Messages: 1075
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello Mirek,

Printing under POSIX vol. 2.
It seems that cancel and system cross buttons don't work in PrinterDlg window. I decided to rewrite PrinterDlg source code.

Now everything should work as expected!

Sincerely,
Klugier


U++ - one framework to rule them all.
Re: [BUG & Patch] Printing under POSIX dosen't work. [message #40657 is a reply to message #40650] Mon, 26 August 2013 19:48 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Thanks, applied.

Mirek
Previous Topic: [bug] Moved UI components on different systems
Next Topic: WString0::Free() crashing
Goto Forum:
  


Current Time: Thu Mar 28 14:17:18 CET 2024

Total time taken to generate the page: 0.01105 seconds