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) » Printing on raspberry Pi 2
Printing on raspberry Pi 2 [message #45075] Thu, 27 August 2015 20:53 Go to next message
JariKettunen is currently offline  JariKettunen
Messages: 2
Registered: August 2015
Junior Member
I installed U++ on Raspberry Pi 2 (Debian operating system). Installation was little tricky. Make failed several times. It took whole workday, but by quessing what is missing and then with Apt I managed to install missing packets and U++ finally compiled succesfully.

One critical part in my plan does not yet work. It is printing. Demo addressbook app compiles and works except printing. Preview works and print button opens printer dialog but last phase printing fails.

Have anyone tried same. U++ is new acquaintance to me. I tried some debug what happens after "Perform(report)" but no luck. One remark to case. When printing from separate texteditor printer selection screen is different than in U++ app. My guess is that u++ framework have own printerselection and do not rely operating system default printer selection.
Re: Printing on raspberry Pi 2 [message #45082 is a reply to message #45075] Sat, 29 August 2015 07:01 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
JariKettunen wrote on Thu, 27 August 2015 20:53
I installed U++ on Raspberry Pi 2 (Debian operating system). Installation was little tricky. Make failed several times. It took whole workday, but by quessing what is missing and then with Apt I managed to install missing packets and U++ finally compiled succesfully.


Good to hear that. BTW, have you noticed/tried "debian" file in U++ tarball? It should contain a list (in form of shell script with apt-get) of all required packages. Could eventually tell me what packages were missing?

Quote:

One critical part in my plan does not yet work. It is printing. Demo addressbook app compiles and works except printing. Preview works and print button opens printer dialog but last phase printing fails.

Have anyone tried same. U++ is new acquaintance to me. I tried some debug what happens after "Perform(report)" but no luck. One remark to case. When printing from separate texteditor printer selection screen is different than in U++ app. My guess is that u++ framework have own printerselection and do not rely operating system default printer selection.


Yes, that is true.

POSIX printing in U++ works this way:

- printing system is queried using 'lpstat' command, info is used in printer selection dialog
- the output is converted to .pdf file (using PdfDraw package)
- .pdf file is printed using 'lp' command

So the first thing to check is whether you have PdfDraw in your project. (you can also check printing from Examples/UWord)

Then please check whether lpstat and lp works...

Mirek
Re: Printing on raspberry Pi 2 [message #45085 is a reply to message #45082] Sat, 29 August 2015 11:19 Go to previous message
JariKettunen is currently offline  JariKettunen
Messages: 2
Registered: August 2015
Junior Member
Problem solved. Printing went to wrong queue. I had two printing queue Canon and HP. Even I select HP from printers when printing, I found print from Canon queue. I removed Canon queue and printing works now fine.

About those missing packets. first I followed instructions from http://upp.invothink.com/release/README. but those orders did not worked. So I downloaded upp-x111-src-8227.tar.gz file and extract it.

I looked again README and there is instructions which would solved my problems if I had read them. I just start from first row command 'make' Maybe last chapter should be lifted first.





[Updated on: Sat, 29 August 2015 12:01]

Report message to a moderator

Previous Topic: problem using http request with https
Next Topic: What's wrong in this code?
Goto Forum:
  


Current Time: Thu Mar 28 17:38:12 CET 2024

Total time taken to generate the page: 0.01247 seconds