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++ Widgets - General questions or Mixed problems » PrintJob does not works on "large project"
PrintJob does not works on "large project" [message #30404] Tue, 28 December 2010 15:51 Go to previous message
alex100 is currently offline  alex100
Messages: 118
Registered: November 2007
Experienced Member
Hi all
I have a problem on printing that just happens on a large UPP project I have.

If I compile and execute the following project:

#include "teste2.h"
teste2::teste2()
{
	CtrlLayout(*this, "Window title");
	btBut <<= THISBACK(OnBut);	
}
void teste2::OnBut(void)
{
	PrinterJob pj;
	Draw& w = pj;
	w.StartPage();
	w.DrawText(0, 0, "Hello world!", Roman(100));
	w.EndPage();
	
}
GUI_APP_MAIN
{
	teste2().Run();
}

the printer prints the message.


But in a large GUI project I use the same code on a button handler and the printer does not move its printing head...
(In this large project I included also the Report support for printing other things on other menu/button options.)


void CSearchHistory::OnButtonOPrint(void)
{
PrinterJob pj1("History job");
Draw& w1 = pj1;
w1.StartPage();
w1.DrawText(0, 0, "Hello world!", Roman(100));
w1.EndPage();
}

Any ideads to catch the problem?
I put an Exclamation on the method beginning and at method end and i realized that OnButtonOPrint method is executed from the beginning until the end.

By the way, debuging facility on the IDE never worked for me...

Env: win7, Mingw and Upp 2901

Thanks a lot
Alex
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: GUI app arguments?
Next Topic: How to maximize printing area of the RichEdit Ctrl? [SOLVED]
Goto Forum:
  


Current Time: Tue May 07 04:15:11 CEST 2024

Total time taken to generate the page: 0.02424 seconds