Reports and labels.. | Uniface Development | Forum

Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

—  Results per page  —








— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters
For a group of consecutive words like 'end of support' use Match phrase

sp_Feed Topic RSS sp_TopicIcon
Reports and labels..
09 Oct 2017
12:53 pm
Avatar
Claudio
Italy
Member
Forum Posts: 90
Member Since:
05 Jun 2016
sp_UserOfflineSmall Offline

Hello,
I need to draw 4 entities on a predefined A4 sheet.
Like these:

Label 1 Label 2
Label 3 Label 4

No problems drawing entities in the desired direction with their respective data.
Having all the necessary measures, how can I dimension my entity in a way that respects diagonal and horizontal offsets?
Is there a relationship in “Uniface squares” Wink that represents a physical measure?

Thanks all
Claudio

09 Oct 2017
1:03 pm
Avatar
gianni
Member
Forum Posts: 257
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

Claudio,

I am NOT understanding what you are trying to achieve…
Entities are composed from fields (and labels) and could include other entities.
In your post only labels are shown…

Could you please re-phrase your need?

Thanks,
Gianni

09 Oct 2017
2:30 pm
Avatar
Claudio
Italy
Member
Forum Posts: 90
Member Since:
05 Jun 2016
sp_UserOfflineSmall Offline

“I have a predefined A4 sheet”, maybe the right term is preprinted module, sorry!

“Having all the necessary measures, how can I dimension my entity in a way that respects diagonal and horizontal offsets?”
I have all the sizes of my labels in the module, but I cannot achieve the respect of offsets between labels (vertically and horizontally) when I try to resize the outer entity (which contain my text fields). So pre printed measurements in labels 2,3,4 are not respected.

Sorry, hope it’s understandable now… 🙁

Claudio

09 Oct 2017
3:59 pm
Avatar
TheAleph
Member
Forum Posts: 54
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

Hello Claudio,
the problem is overdue, several years ago when pre-printed forms existed, the only way to try to center the data in print was to print text in text using the unifield fields; if you use the graphic format each pc could print differently depending on the operating system, printer driver, etc.

Ciao Claudio,
il problema è annoso, parecchi anni fà quando c’erano i moduli prestampati l’unico modo per cercare di centrare i dati in stampa era quello di eseguire una stampa in formato testo usando i campi unifield ; se usi il formato grafico ogni pc potrebbe stampare diversamente in base al sistema operativo, al driver della stampante etc.

09 Oct 2017
5:22 pm
Avatar
Claudio
Italy
Member
Forum Posts: 90
Member Since:
05 Jun 2016
sp_UserOfflineSmall Offline

TheAleph said
Hello Claudio,
the problem is overdue, several years ago when pre-printed forms existed, the only way to try to center the data in print was to print text in text using the unifield fields; if you use the graphic format each pc could print differently depending on the operating system, printer driver, etc.

Ciao Claudio,
il problema è annoso, parecchi anni fà quando c’erano i moduli prestampati l’unico modo per cercare di centrare i dati in stampa era quello di eseguire una stampa in formato testo usando i campi unifield ; se usi il formato grafico ogni pc potrebbe stampare diversamente in base al sistema operativo, al driver della stampante etc.  

Thank you very much TheAleph,
I’ve tried to do as you said printing in text mode. But the problem still remain…I cannot figured out how to align the text correctly respecting the offset between labels…Every time I resize the outer entity that acts as a container, everything gone wrong. I can not establish a match between mm=”designer’s squares”.

Grazie mille!
ho provato a fare come hai detto stampando in modalità di testo. Ma il problema rimane…non riesco a capire come allineare il testo correttamente nel rispetto dell’offset tra le etichette…ogni volta che ridimensiono l’entità esterna che funge da contenitore, tutto si sballa. Non riesco a stabilire una corrispondenza mm=”quadretti del designer”.

Ciao
Claudio

09 Oct 2017
6:20 pm
Avatar
ulrich-merkel
Frankfurt/Germany
Member
Forum Posts: 1694
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

One option is to use a specialy designed Printer Device Table where you can literally “program” your printer with (expl. PLC6 etc).

And it’s possible that you create your “Escape” Sequences on the fly with a little help from the GOLD; which is the ESC character.
I used this a couple of times in the early 90’s to print stationary of all kind.

Think in 2007, there was some discussion on turf about checue printing which may give you a hint.

10 Oct 2017
8:08 am
Avatar
ulrich-merkel
Frankfurt/Germany
Member
Forum Posts: 1694
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

A more modern way may be to use the talents of HTML5/CSS to do the layouts in an HTML-widget.
This will always have some interactive part as there is a dialog when you invoke the printing.

10 Oct 2017
8:29 am
Avatar
gianni
Member
Forum Posts: 257
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

Hi Claudio,

Uniface screens/printouts are built around a base cell ($cellinfo).

This cell is determined from font0 definition in the configuration file you are using (.ini file) in [screen] or [printer] sections;
– the first step is to recognize your pre-printed module and define how it was built.
– the second step is to adapt your .ini file in this case into the [printer] section to your current need.
This analysis is leading to a decision:
could this custom module be printed in my standard application process or its requirements needs a dedicated process to use a customized initialization file?
If you need to start a dedicated process userver or another uniface process could do the job.
In the printing phase some zoom functionality could be applied; you should control it defining your Uniface report component.

Everything I’ve detailed is available into current Uniface Library.

Regards,
Gianni

10 Oct 2017
9:30 am
Avatar
Claudio
Italy
Member
Forum Posts: 90
Member Since:
05 Jun 2016
sp_UserOfflineSmall Offline

Thanks all, people.

From chm:

$cellinfo
Get an associative list with the dimensions of a character cell in pixels.

$cellinfo
Return Values
Returns an associative list with the width (xsize) and height (ysize) in pixels of a character cell as displayed on the screen. The dimensions are determined by the font0 setting in [SCREEN] section of usys.ini.
xsize=Pixels;ysize=Pixels
An empty string is returned when the function is used in batch mode or in a non-interactive Windows environment.

Use: Use only in form components.

Description
$cellinfo returns the dimensions of single cell as determined by the following settings in usys.ini:

font0 in the [screen] section

CELLHEIGHT and LINESPACE in the [upi] section. CELLHEIGHT specifies the cell height (as a percentage of the cell height of Font 0) used to draw widgets. LINESPACE specifies additional spacing between text lines in the background.

These dimensions can be used as input for $windowproperties to adjust the size of the window.

Table 1. History Version
Change
9.4.01 Introduced

I’m with 9.3, in a report.

Ulrich Merkel: Thanks for your advice, I will leave as the last soluzion the escape. I don’t want to use “exotic” solutions for simple labels, I need to make a print and I want to use its integrated printing tool. Thanks anyway for your suggestions.

Regards,
Claudio

11 Oct 2017
4:44 pm
Avatar
gianni
Member
Forum Posts: 257
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

Hi Claudio,

I know what $cellinfo() meaning is and you do NOT need to use it…I’ve mentioned it just to clearify the whole context!

U9.3 = end 2009 – begin 2010 = With current quick evolution of software platform(s) a migration proposal could easily improve the whole application context.

Nevertheless:

Have you tried to follow the path I suggested?
– Is your pre-printed module based on a single line spacing or more than one?
– Is your pre-printed module based on a single character pitch or more than one?
– Have you tried to change font0 in the printing section?
– If yes to last question, were you able to fix either the X or the Y characters position?
– Which issue is remaining open?

Gianni

12 Oct 2017
10:27 am
Avatar
Claudio
Italy
Member
Forum Posts: 90
Member Since:
05 Jun 2016
sp_UserOfflineSmall Offline

gianni said
Hi Claudio,

I know what $cellinfo() meaning is and you do NOT need to use it…I’ve mentioned it just to clearify the whole context!

U9.3 = end 2009 – begin 2010 = With current quick evolution of software platform(s) a migration proposal could easily improve the whole application context.

Nevertheless:

Have you tried to follow the path I suggested?
– Is your pre-printed module based on a single line spacing or more than one?
– Is your pre-printed module based on a single character pitch or more than one?
– Have you tried to change font0 in the printing section?
– If yes to last question, were you able to fix either the X or the Y characters position?
– Which issue is remaining open?

Gianni  

Sorry Gianni,
I know you’re always available to help.
The thing I can’t understand is why, in 2017, a report design tool does not have minimum required to draw reports, like rulers.
Since 1998, I used Report Builder, Rave Reports, Birth, Oracle BI Publisher, and I’ve always had a visual designer who is expected to draw a report, not a calculator.

I do not want to question the philosophy of Uniface, which could be shared or not, but it’s frustrating.

I solved it in another way, but thank you anyway
Claudio

12 Oct 2017
12:57 pm
Avatar
gianni
Member
Forum Posts: 257
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

Claudio said

I solved it in another way

Claudio  

Which is the solution adopted?

Gianni

13 Oct 2017
9:08 am
Avatar
TheAleph
Member
Forum Posts: 54
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

OLIVETTI LETTERA 22   PRIMA SERIE  CON LOGO CROMATO  ANNO 1950 Image Enlarger  OLIVETTI LETTERA 22           LaughLaughLaugh

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 131

Currently Online:
12 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

ulrich-merkel: 1694

Iain Sharp: 612

Theo Neeskens: 339

gianni: 257

rogerw: 232

istiller: 199

lalitpct: 197

Knut: 175

-GHAN-: 171

sochaz: 165

Member Stats:

Guest Posters: 3

Members: 6285

Moderators: 0

Admins: 8

Forum Stats:

Groups: 1

Forums: 62

Topics: 2032

Posts: 8749

Newest Members:

adbotter, KennethHub, MathewBew, Sarma, RichardSmare, Frostseekerquife, Lookeephi, Llberyquife, BrunoTop, Sirbop

Administrators: admin: 23, Adrian Gosbell: 278, diseli: 820, Bob Maier: 3, Nico Peereboom: 62, Michael Rabone: 4, richiet: 406, JanCees: 28