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 #44653 is a reply to message #44649] Wed, 06 May 2015 11:14 Go to previous messageGo to previous message
woffleys is currently offline  woffleys
Messages: 9
Registered: December 2014
Promising Member
Hi,

Thankyou for the example:

if(p.StartsWith(" "))
   p.Remove(0);


its alot better than mine. Smile and my "lpstat -d" outputs
 kris@woffleys-it:~$ lpstat -d
system default destination: RICOH_Aficio_MP_C3000
kris@woffleys-it:~$ 


there's always been a space after the colon, but I cant tell you if its the same across all distributions.

I worked out that, PrinterJob::Execute0 is actually called twice, once with the dialog and then in GetDraw.

I changed
	if(dodlg) {
		dlg.Run();
		if(!dlg.IsCanceled())
			return false;
	}


to:

	if(dodlg) { dlg.Run(); } 


then before the function returns true, i've added:

	if(dodlg) {
		if (!dlg.IsCanceled())
			return false;
	}



this allows it to run twice, setting up the options that have caused me so many problems, but also allows the printout to be cancelled. Smile
 
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 10:05:10 CEST 2024

Total time taken to generate the page: 0.05606 seconds