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 » RichText,QTF,RTF... » Possible Bug with Printing under linux (Possible Bug with Printing under linux)
Re: Possible Bug with Printing under linux [message #44650 is a reply to message #44649] Tue, 05 May 2015 14:24 Go to previous messageGo to previous message
woffleys is currently offline  woffleys
Messages: 9
Registered: December 2014
Promising Member
I've managed to fix the default printer issue, by editing the file: PrinterJob.cpp

the default printer fetched by "lpstat -d" has a space at the front and new line/carrage return at the end.

by adding:

if(p.StartsWith(" ")){ p = p.Mid(1); }
p.Replace("\r","");
p.Replace("\n","");

after: String p = h.Mid(q + 1); (line: 288)

this is now fixed in my copy. but as Im new to ultimate++ / C++ if someone has a better / simpler way, it would be appreciated.

I still dont know why a chosen printer is not used and the default / first is.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: QTF to ODF (Open Document Format) converter
Next Topic: Clipboard: "RTF" before "IMAGES" format, patch provided
Goto Forum:
  


Current Time: Sat Apr 27 14:15:08 CEST 2024

Total time taken to generate the page: 0.05852 seconds