Polski Związek Krótkofalowców

 

Polski Klub Radiovideografii

Navigation:  Program HAM SECRETARY and its purpose > Prints QSL cards, labels, envelopes and bookmarks >

Description of the fields in a pattern template  for print

Print this Topic Previous page come-back to begin of chapter Next page
Expand all elements   Callapse all elements

In this chapter we will discuss:

 

 

1. Pattern design for print

Printing QSLs , labels, envelopes, d bookmarks between countries is based on defined patterns for print. You can design your own patterns for print. Supplied with the program patterns completely but enough to print --  because the program retrieves personal data for the station   from the file  setup.ini - see chapter Setting personal information You may need to just change the size of the possession standard QSL cards or sheets of labels.  Calling the template design is done from the main menu

or from the printer icon on the left side

After selecting this function will report to us a window where there will be three tabs as below

2.  Bookmark- Design template pattern  for print - a description of form fields

This tab has the appearance of

Boookmark -Design template pattern for print

There are following description of specific groups of fields

2.1 Fields No. 1-Defining Fields pattern template

This tab is used to define fields to be inserted into the box Fields no. 4 .Into the  pattern are not inserted the names of these fields  but specific data taken from the QSO test - so that the user gets tool  WYSIWYG ( What you see - it was you get ) The Fields No. 1 fall.

Type of Pattern

Construed as a pattern are as follows elections - to choose only one parameter:

 

Full QSL It can be full of QSL card with graphics elements or without for filling for fields on  QSL obtained from print shop. Paper can be any such A4 (fit then 4 QSL cards) or as defined by the customer  - Custom format
The labels on the QSL (Labels). Template patterns designed for the labels what is provide with the  program  are designed for the labels of size 67.6 x 36 mm on A4 page - 3 columns x 8 rows
Address envelopes. Patterns designed to address the envelopes are for the standard C6 size - ie 162 mm x 114 mm
Bookmarks between countries in a package sent QSL cards or between countries in the QSL card archive home
QSLScan - full of QSL card for which the fields are designed based on the location obtained from a file-scan performed on the side of the card on which these fields are to be printed by the printer. This approach allows of the precise design pattern  in print in the appropriate bearings fields after 1st design pattern. Scan you can do in a color or  in shades of black and white because the file is then small
The file must be formatted to format bitmap's .bmp . Most inkjet printers can scan documents or images.  For example, for HP PSC 1510 - choose a sequence as  Grayscale -  bellow

 

Implementation of the inkjet printer scan
HP PSC 1510 to a bitmap file in grayscale

Then we need to change the resolution from 300 dpi to 150 dpi to the file was still easy to read and not too large.  So press Ustawienia Scanowania Dokumentu . Settings Scan of  Document.

Setting resolution scan on the printer
HP PSC 1510 inkjet printer to 100 dpi

Resulting a bitmap file will have around 300 KB. It is not important if you print this file to a printer will have different dimensions than the QSL card, because we will see later we will put   real dimensions of QSL cards held - which is exactly the scan performed  scaled in a program

You can not design based on a scan card only for the stretch of the card - because not get hit in the field of printing the QSL card. It must be a complete QSL card - on a scanner we must see exactly where end of area for QSL card , and there set the area to scan

After pressing QSLScan box in a interface design pattern will appear at the bottom additional window

It should be given real  dimensions of QSL cards and choose scan file

After you have selected SP9AUV_QSLScan.bmp we may receive the following announcement - occurs when a chosen pattern of type pattern of fields = Table with fields

The program HAM SECRETARY   allows design patterns using two types of fields in the pattern:

1.Only the fields or
2.Table with fields -what has been described below.

The preferred fields for the type of card on the basis of the proposed scan of the QSL card is the type of fields = Table with fields . Then we get  above announcement. So now I go to the create of the table, eg 9 columns and 9 lines as described in the section below. After create get template pattern as follows

Template pattern with background graphics
from Scan QSL's  with the fields to their data
insert to

The picture above we see real two images

1st shows the QSL card in  the actual real dimension with margins for the printer
2nd shows the area of the print pattern - ie the area minus the margins for the printer.  These images overlap exactly. Changing the margins - top, bottom, left, right, just change the line that represents where you start the correct area to print.  In this type of pattern, ie QSL Scan does not set the size of the pattern and just change the margins in  as described below which causes automatic resizing template pattern.  Parameters pattern  height and width are grayed , not giving the user a direct possibility to change these parameters

 

.Full description of the design pattern using Scan's QSL presented below.

Template pattern designed are stored in the directory HAM_SECRETARY \ PATTERN_FOR_PRINT

 

Type Fields in a pattern

Software tools used here allows choice between the following types of

 

Only Fields --  which means that the ADIF fields is inserted in a position corresponding to the current cursor position  in a pattern. This approach does not permit in some cases for some fonts Windows the exact alignment of columns if the column contains a number of  QSOs > 1. .. The idea is that, for example, point 'and' for many fonts takes a different width on the screen. For example for the letter 'i' and  'a' wide is different . This type is recommended to address envelopes and bookmarks.
Table with fields. Selecting this type of result insert a table into the pattern    - ie the number of columns and the number of rows are selected in the checkbox as described below.  It allows accurate horizontal alignment of the  item to  left side of the cell, the right side of the cell or inside a cell, the vertical is also possible to compensate for the top of the cell, inside the cell or the bottom of the cell. Particularly this  posibilty is important  for different types of fonts, or to insert graphics to pattern.
Pattern parameters

These are the following parameters

Pattern width in mm - at the beginning is set at 67 mm for the labels
Pattern height in mm - at the beginning is set at 36 mm for the labels
Select ADIF Field

This field is used to select the field from the QSO to be inserted in a place corresponding to the current cursor position. Field names are defined in standard ADIF. . In a process  development this button allow user  to select all the names of the ADIF standard fields, plus some personal data collected from the station. Pattern printed on the screen is not inserted the name of the field but coming from a specific test standard QSOs.

If so, we will proceed to get a call from us message

This is because that the main form was set to the type for pattern as Labels on QSL , and type of fields in the pattern as Table with fields , and not assume the array, ie not given the quantity of columns and rows, and not put checkbox   Table in a pattern.

Other fields are not derived from QSO :  MY_NAME eg, MY_STREET, MY_ZIP, MY_CITY, MY_ANTENNA, MY_ZONE, MY_COUNTRY, MY_LASTNAME, MY_RIG. These fields come from the personal data

 

Conditional field ADIF

Often you need to insert a pattern of conditional field e.g If you have received from the station QSL then type in a field  TNX word and if you do not receive QSL then type PSE word. To accomplish this, first insert the letter Y - then TNX, then  PSE and then select a field  ADIF  QSL_RCVD like the picture below ..Of course, the cursor in the first pattern should be set in place the required (if it disappears - not to care about).  A similar procedure is possible for the Via field in the pattern.

 

Table in a pattern

Advantages of using an array described above. To create a table of first set the cursor in the pattern (from top -do a space by pressing the ENTER key twice - but when you choose a small font eg 4 pt), then by buttons in a right of the field change the number of column and   the number of rows to desired, then press box Insert Table. . At this point, these three fields will be grayed out and if you want to add or remove a column or row otherwise proceed as described here.

 

Receive a table in a the pattern as below . Pressing button Border / NoBorder cells. - causes ON / OFF 1-pixel  frame for the fields in the table. The frame is erased when  print- and so there is no necessity of deletion  this in a  pattern.

 

Template pattern with inserted table

Template pattern with inserted table

If you want to insert the image into any cell in the pattern array is set to the cursor in the cell where you want to insert a picture and then press the mouse in the checkbox Insert picture . Reports to us the ability to select directory and image, to be the "trip" to select an image directory - type. jpg,. ico,. bmp, and then press Open-Otworz

 

Insert an picture into a cell in a pattern

Inserted picture does not need to be specifically reduced, as rescaling the image can be made in the pattern in such a way as shown below. Yes - scaled image in the pattern is already occupied a much smaller size, because along with the pattern with extension . LBL is also saved with the extension  .RVF file that stores formatted text,  the size and font color and the resulting graphic images

Rescaling picture directly in a pattern

Control buttons - control
Controls buttons

Controls buttons

Buttons Previous field and Next field are used to move to  the fields with the inserted content determined on the basis of the corresponding ADIF field. If you press  this key fields will be highlighted ADIF field or  Conditional ADIF field and cells as in Figure bellow . Name ADIF of this field is displayed as the image below , and  in the case of Conditional ADIF fields will be displayed previously entered value for this conditional

 

Principles motion fields, highlighting the field and
display its name and attributes of the field

Next button

Serves   for insertion into pattern fields for the next record QSO. Based on the previous line with the fields ADIF fields all fields are copied to the current line where we set the current cursor position. This will be described in the description of pattern formation. This greatly accelerates the creation of a pattern

2.2 The appearance of the area No. 1  for difference choice type of pattern  and  difference type of fields in a pattern

In the area of No. 1  depending on the selected type of pattern may be  extinguished some fields - to make your easier design pattern . The following are the appearance of the area for each selection:


Appearance of the area No. 1 for the Type Fields
Full QSL and Fields in the pattern
type = Only Fields

 

As you can see all the fields affected  inserting  Table to a pattern are grayed out ..Type field in this  pattern = Only fields.  This option is rarely used for QSL full - even though it is not excluded. For full QSL better will be create table in a pattern as to better positioning and fit for its existing fields on the printed QSL card .

Appearance of the area No. 1 for the Type Fields
Full QSL or labels and Type Fields in a
pattern = Table with fields

As you can see the elements have been show  affected Table in a pattern - as Fields Type  in a pattern we have chosen = Table with fields

Appearance of the area No. 1 for the Type Pattern
Address the envelope or Bookmarks
(between countries)

For type  pattern Address envelopes and Bookmarks (between countries) do not need to compensate for the columnar and the easiest to use as a type of fields in the pattern = Only fields. Then all fields are grayed out on the plate in the pattern and also the ADIF QSO field. Note that changed with the Select check box from Choice ADIF field to Choice field adress or bookmark   They are here to choose a field originated not from the QSOs but from the address data (downloaded by the relevant   - Addresses from QRZ.COM) and   from fields personal data with the prefix MY MY_FIRSTNAME , MY_LAST_NAME, MY_QTH_CITY etc. ) )

The appearance of the area no.1 type = QSLScan
pattern and type fields  = Table with Fields

We see that the pattern width and height  is grayed out not allowing them access to the user. Changes in the value of these parameters occur only when change the margins - it is done automatically by the program . The precise manner for QSLScan described below

2.3  Fields No. 2 - Attributes Field Pattern

These fields have the appearance

Attributes field pattern

Attributes field pattern

The buttons are important

Button  record pattern - save pattern to a given file name
Button alignment to the left side of the  pattern - And if the field is in the cell plate it is offset to the left side of a cell  Here he is seen as depressed - ie it is active - which means the data field has the attribute of compensation
Button alignment to the center and if it is a field in a table cell alignment means to to the center of  cell
Button alignment to the right - - And if it is a field in the table cell  alignment means to the right side of cell

 

Button alignment to the the left and right sides
Buttons to reduce or increase the indentation - should not be used
Vertical alignment buttons -- only visible if you select the type of fields in the pattern = Table with fields

alignment to the top of the cell array
alignment to the center of the cell array
alignment to the bottom of the cell array

These buttons if you are active - May figure pressed button's - to the given field or cell is used for data alignment

Button Border / No Boder cells . (border to all cells)..

This button is visible only when the type  fields in a pattern = Table with fields .

Field Font -- to choose from drop-down menu
Field Font Size -- to choose from drop-down menu.You can choose the font size of 2 pt to 72 pt
Bold button --   bold font
Button I - Italic -- font inclined
Button U - Underline --   font with underline
Composite attribute selection button Apply Font 

After the press box where we can get at the same time choose the type of font, its size and color

Composite selection dialog select
the font attributes

Button Font Color After the press get a choice of font color

Choice of font color

Undo button changes - Undo -  Used only for plain text - not in boxes and cell ADIF
Redo Button - return back  the changes made by Undo button Used only for plain text - not in boxes and cell ADIF
Border area selected fields. It serves to frame some fields. Capacities create border fields and cells are particularly valuable when designing pattern and  store the data page of QSO's  on a empty side of card  and will be well do there any border

 

This area has two boxes to choose from:

Border Color .

The line width of a border in a area and  for selected cells within that area .

Principles of design pattern of the border area of the cells shown here

2.4 Fields No. 3 printed page

These fields are used to select all the parameters for printing parameters such as show information regarding the deployment of components on printed page

Paper Format

To select from the following paper sizes::

format A4 - height = 297 mm - width = 210 mm
format A5 - height = 210 mm - width = 148 mm
format C6 Address Envelopes C6 size - height = 114 mm - width = 162 mm. These envelopes should be printed in landscape orientation and dimensions given here refer to the Guidance horizontal
Other paper sizes - a total of 24 standard formats
The format of the Client. The dimensions given here individually in the field Real size of print page paper - which is cleared when you select this type of format.  Typically, this format is used for an individual user's QSL card of height = 90 mm and a width of 140 mm.  These cards should be printed in landscape orientation for the paper orientation = horizontal - the parameters for the QSL cards should be set as the following image

Printing parameters for printing the
QSL card height = 90 mm x width = 140 mm

If you develops a pattern in the course of administration or the margins of the pattern parameters, you may receive the following message of zero number of columns or rows in the design pattern in the Report Deployment  window

Communication with zero number<br>
of columnsor rows on the printed <br>
paper in the designed pattern

Communication with zero number
of columnsor rows on the printed
paper in the designed pattern

To this description is linked  button  help_error from the design pattern in a program .

When this occurs primarily  reduce the  parameter' s for pattern such as for the QSL cards printed in landscape orientation -- reduce the width from 140 to 125 and the height from 90 to 75 mm.

Must surely have occurred the following relationship:

The width of the pattern <= actual width of the paper - (Left Margin + Right Margin)
The height of the pattern <= actual height of the paper - (top margin + bottom margin)
for example for QSL cards 125 <140 - (6.4 + 6.5) and 75 <90 - (6.4 + 6.4)
can you possibly keep trying to reduce margins, but not below the minimum required by your default printer. Although inkjet printers offer the possibility of obtaining lower minimum margins, but it is good to design a pattern for higher margins - because it ensures us that this pattern will be able to be used also for laser printers, having a larger minimum margins

If you would like to write a pattern that we will get the message about the impossibility of writing such a error  pattern .

 

Communication about the impossibility of
writing the wrong pattern with zero number
of columns or rows

 

Even if the design of such an incorrect pattern in a previous versions and we managed to save him (if he had a number of columns = 1 - which was a mistake) so now when you try to redesign this pattern appears to us a similar message

Communication about the pattern with zero
columns or rows

After pressing the OK we will be able to edit a pattern.

If we call this pattern from a function of print and preview the actual data --- then after you press OK, the program returns to the main menu. Then you need  edit  this  pattern with use function Design pattern template and print preview   .

Paper orientation

Paper orientation can be vertical (named also portrait ) or horizontal (named also landscape). As they are often committed errors in the interpretation of this concept will not forget the following rule

Rules on Guidance Paper :

If the individual lines on the printout are parallel to the printhead motion (or parallel to the shaft of the printer)  then the Paper Orientation = Vertical or also named Portrait
If the individual lines of print are perpendicular to the printhead motion (or perpendicular to the shaft of the printer) then the paper orientation = Horizontal  or also named Landscape .- Eg .- C6 envelope address and full of QSL cards are printed in this  orientation

The rule for inserting paper into the printer:

Regardless of which orientation - vertical (portrait) or horizontal (landscape) print , put paper into the printer always narrower dimension of the sheet

Picture showing the size of the printed page

Depending on the format of the image showing the printed page is:

for Vertical orientation

For this orientation  and paper size A4

for Horizontal  orientation

For the horizontal orientation showing the turnover made from portrait to landscape orientation to obtain. It is presented for a new type of printer - such as ink-jet - for which turnover is 270 deg .

This printer  you can recognize , because when printing in a landscape orientation - the first line will be print at the top of document If your printer prints in landscape orientation in this way that the first line appears at the  bottom of document - then the turnover is 90 deg .

But note - a lot of printers, for example, the HP LaserJet 2200 2300 pre-rotated by 90 degrees. But the driver for this printer is the possibility of additional turnover of 180 ° and then behaves in such a printer to print the horizontal orientation  as a new printer.

Rotate 270 degrees is especially valuable for developers - because then printing starts in the upper left corner and a printer can easily "cheat" by giving the other a larger print format if there are no possibilities to define a custom format.

By contrast, rotate 90 degrees  make print in landscape orientation alignment is  made in  the lower-right corner, and then substituting the smaller format than the printer asked nothing prints - ie the print area is outside the format

More about turning pages for landscape orientation and printing on the old type of printer is written in this chapter

For this orientation  and paper size A4

Thus we see that the horizontal orientation the height and width of paper turns into places with respect to the vertical orientation

Real size of paper

This field shows the real size of paper for the selected time format - A4, A5, C6 Envelopes address and many other formats in this release 2.3.0 (24 paper sizes). In these cases, only shows the dimensions of the box without giving them access to the user. The icons of this field - see above. In the event that a paper size format is chosen the Custom format , this field is cleared and the user must manually enter the dimensions, ie height and width of the paper

Allowed printing area for your printer

This field is only displayed and does not give access to that data by the user. Data in this field are calculated by the program based on the actual paper size minus the margins required for your printer

We see that the value are grayed-out - without giving them access to change. They are only functions of the information.

Margins for print

Minimum initial margins are read for your default printer, and are displayed in the box below. The printer does not even need to be switching on - it is important to be set as the default in Windows

If you try to set a margin below the minimum it will appear to us as an additional window below

We see that we have been informed of the attempt to set the upper margin = 1.7 mm - which is too small values.  Therefore be re-admitted back to the upper margin = 1.9 mm and this message will disappear

Report deployment

Fields contained in the Report Deployment user has no access. The data in these fields are only displayed and are the result of other data previously entered (as described in the previous section)

 

All value are grayed-out, ie you can not change them. They are only functions of information

The report sets out the values in the following fields

Sum. width fields of labels mm - the width occupied by all labels on the selected format - usually A4, or occupied by the width of the QSL card
Sum. height  fields of labels mm - the height of all rows occupied stickers on the chosen format - usually A4, or occupied by the height of the QSL card
The real size of right margin in mm
The real size of bottom margin in mm

 

2.5 Fields No. 4 Pattern template

Sample appearance template pattern for the two types of fields shown in the pictures

For the types of fields in pattern = Only Fields

With an table in a pattern are associated specific conditions which are described below:

1.If you want to put the table in any program such as Microsoft Word or Open Office then after  adding one column or expand the column width does not change the total width of the table
2.If we want to put an extra line or change the height of one row of the table in any program such as Microsoft Word or Open Office then the total hight table  increases.

Demands that we make for the table pattern:

When we create a pattern table,  we want the total height of the table and the total width of the  table will be  not changed regardless of whether the change table row height or column width, or add a row or column. It follows that  on the print must always be the same size pattern

Therefore, you need to ask yourself

How to ensure this condition?
Used table element  provides itself maintains a constant width table, regardless of the width of the columns that will be changed. However, the change in the width of one column will change other column widths  - which is not a problem.
However, when changing row height or adding the row , will change the total height of the table. Therefore, the program uses a special technique of aligning these heights

A special technique of leveling hight rows in the pattern table:

This technique consists in the fact that by moving downwards (less up) a line separating rows  adopts a new height value , and the rows  below until the end of the table adopts to a new lower height in proportion to the previous height, but designated in this way ,that will be equal to the total height the previously determined height .

Moving the line separating rows down

Appearance when you move the line separating rows down
and releasing mouse button

The final appearance of the pattern table and attention
which must be  pure-keep.

In a properly designed pattern table no element to be printed should not exceed the area of ​​the pattern on the screen.

But the best would be if the pattern does not show the possibility of moving

pattern with the mouse wheel (scrooling down -up ).

 

Here we see the field subtitles example is To Radio - entered directly and field  type ADIF   taken from the test QSO ie field CALL=9K2AO . In this way, the pattern is not show the ADIF field name but a concrete date taken from the record QSO  of file test.  In this way,  obtained mode WYSIWYG (What you see is what you get ).  Excellent design makes this pattern. At the bottom of the pattern is visible status bar - which displays Modified string if the pattern has been modified

For the types of fields in a pattern = Table with fields

.

 

QSL card full of graphics

Pattern template - full QSL card
with graphics

In the form at the top put a space in the form of 2-s marks the ENTER key after selecting a previously font size 4 pt - which secures the fit of the labels in the case of some inaccuracies in the positioning of the printer

Correct way to design pattern was presented in a chapter

2.6 Field No. 6 - Controls Buttons

 

Here are the following fields and buttons:

Field Name file of pattern for writing - in this field should indicate the name under which is saved pattern template . Once loaded, ie, choose to edit or benchmark testing in the field

 

Name of the selected template automatically go to the field Name of file pattern template for writing.  You can edit this name to  record a new version of the pattern. The program will automatically  adding an extension for the name of the pattern and determine it as follows::

for full QSL and labels on  the QSL  admit  the extension .LBL
for address envelopes admit the extension .ADR
for bookmarks admit  the extension .BOK

Extension plays an important role in the program since the extension controls functions performed by the program when you select a print pattern template

Button Save file of pattern --  save result of pattern  in a directory PATTERN_FOR_PRINT .  Along with the file of extensions described above is saved as a file named filename pattern but with  .RVF . extension.   Contained in it are:
Rich set of content
size, type fonts. and its color
attributes to allign for the elements
in the case of graphics is saved also an image in it as if you made a reduced scale image
Button Fill page with data test - fills the area.No. 6  with data from the test data file of QSO - which fills the 1-one page to print.  Page can be printed by pressing the button  Print Preview.
Print Preview button. Takes you to bookmark, print preview and printing - where you can preview a page dedicated to print and print it
Help button describing the design process for print pattern
Exit to main menu Button to go to the main menu. If you forget to record the modified  pattern will get a message in which we decide whether we write a file of