From cd3a602b45a2c8a868c40f3e60c00101c9c4f67a Mon Sep 17 00:00:00 2001 From: luca Date: Tue, 5 Jan 2010 09:46:29 +0000 Subject: [PATCH] Patch level : Files correlati : Ricompilazione Demo : [ ] Commento : git-svn-id: svn://10.65.10.50/trunk@19869 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- at/at2700.cpp | 7 ++++++- at/at2700.trr | 12 ------------ 2 files changed, 6 insertions(+), 13 deletions(-) delete mode 100755 at/at2700.trr diff --git a/at/at2700.cpp b/at/at2700.cpp index d400b5ab2..bf6348c53 100755 --- a/at/at2700.cpp +++ b/at/at2700.cpp @@ -1285,6 +1285,8 @@ bool TStampaPerCategorie::user_create() filetrr = "recdesc/at2700a"; filetrr.ext("trr"); } + if (!filetrr.exist()) + return error_box("Manca il file at2700a.trr sia in custom che in recdesc. Impossibile proseguire!"); _file = new TExternisamfile(filename, filetrr, false); //stampa file personalizzato @@ -1297,6 +1299,8 @@ bool TStampaPerCategorie::user_create() perstrr = "recdesc/at2700b"; perstrr.ext("trr"); } + if (!perstrr.exist()) + return error_box("Manca il file at2700b.trr sia in custom che in recdesc. Impossibile proseguire!"); _filepers = new TExternisamfile(namepers, perstrr, false); @@ -1323,7 +1327,8 @@ bool TStampaPerCategorie::user_create() TString16 performato = config.get("ElencoFormato"); _form_per = new TEti_percat_form(performato); _lenpage = printer().formlen(); - return TRUE; + + return true; } bool TStampaPerCategorie::user_destroy() diff --git a/at/at2700.trr b/at/at2700.trr deleted file mode 100755 index 097268279..000000000 --- a/at/at2700.trr +++ /dev/null @@ -1,12 +0,0 @@ -1001 -8 -CODICE|3|8|0|Codice -COGNOME|1|25|0|Cognome -NOME|1|25|0|Nome -SPOSATA|1|25|0|Cognome da sposata -INDIRIZZO|1|30|0|Indirizzo -STRADARIO|1|5|0|Stradario -PRESSO|1|30|0|Presso -LOCALITA|1|80|0|CAP, Localita, Prov. -1 -CODICE|X