× Discuss on Template programming, jBASE programming, Enquiries, No-File enquiry, Enquiry routines, Version, Version routines, Menus, Abbriviations, Creating local reference fields, Fast path enquiries, Creating charts and graphs, Generating Reports, Deal slips, Straight through processing, Multi Company and Multi Book setup, Tabbed screens, Composite Screens, T24 API, etc...

Select Printer Form

  • jernike
  • jernike's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Im a NewBie
More
8 years 2 months ago #18911 by jernike
Select Printer Form was created by jernike
Hi,

I would like to ask where can I configure/setup in T24 to select the prescribe Printer Page Form.
'Coz whenever I print a deal slip, the alignment is off. I need to change the top and left margin to 0.2 and 0.5 respectively.
Also, when I am printing a Passbook, I need to change the margin to 0.5 and 0.75 respectively.

I am thinking of making a predefined setup (printer side) like below :

Form Name : T24 Deal Slip (6x8)
Top Margin : 0.2
Right Margin : 0
Left Margin : 0.5
Bottom Margin : 0

Form Name : T24 PassBook_Front (6x8)
Top Margin : 0.5
Right Margin : 0
Left Margin : 0.75
Bottom Margin : 0

Form Name : T24 PassBook_Back (6x8)
Top Margin : 0.5
Right Margin : 0
Left Margin : 0.3
Bottom Margin : 0

Now my concern is, how will the T24 select the Page Setup I have made in the Printer Area?
I have read something like PRINTER.ATTRIBUTES but don't know how to use it or how it function.

Greatly Appreciate any Help.

Thanks.

Please Log in or Create an account to join the conversation.

More
8 years 2 months ago #18912 by ARSALAN
Replied by ARSALAN on topic Select Printer Form
Assuming DEAL SLIP FORMAT, you are giving REPORT.CONTROL.ID in Deal Slip record. in application "REPORT.CONTROL" record you will find field FORM.NAME. refer this value in the application DE.FORM.TYPE where you can define the default Page Details.

Regards,
The following user(s) said Thank You: jernike

Please Log in or Create an account to join the conversation.

  • jpb
  • jpb's Avatar
  • Offline
  • Moderator
  • Moderator
  • TAFj-R20 - 'unix'
More
8 years 2 months ago - 8 years 2 months ago #18913 by jpb
Replied by jpb on topic Select Printer Form
With PRINTER.ATTRIBUTES you can send PCl esc-sequences to your printer.
The key to this table is the PRINTER.TYPE as defined in PRINTER.ID (field 3) and the RPT.ATTRIBUTES as defined in DE.FORM.TYPE (field 7).

When you define e.g. HPLASER for all HP printers in PRINTER.ID and DEALSLIP as RPT.ATTRIBUTES in DE.FORM.TYPE your key to PRINTER.ATTRIBUTES is HPLASER.DEALSLIP.

Within PRINTER.ATTRIBUTES you can then either define e.g. :

Top Margin : <027><038><108>002<069> - same as esc&l2E
Right Margin : <027><038><097>001<077> - same as esc&a1M
Left Margin : <027><038><097>001<076> - same as esc&a1L
Bottom Margin : -->(never seen, use page size) <027><038><108>080<070> - same as esc&l80A
Orientation : <027><038><108>000<079> - same as esc&l0O

in INIT.SEQUENCE (use corresponding DESCRIPTION to note what each line is affecting)
or you might send the correct sequence to tell the printer to use "T24 Deal Slip " if it is accepted (maybe using a macro).

First get the PCL command reference guide for your printer model, and then try out!
Last edit: 8 years 2 months ago by jpb.
The following user(s) said Thank You: jernike

Please Log in or Create an account to join the conversation.

  • jernike
  • jernike's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Im a NewBie
More
8 years 2 months ago #18916 by jernike
Replied by jernike on topic Select Printer Form
@Arasalan

is the Form.Name is same as the FORM Name in the Printer?
e.g. (LETTER, A4, LONG)

@JPB

Ill try it later once I got back in the office.
Also, we are using IBM Olivetti PR2 printer.
As per your suggestion, I'll try looking for references and try it if it works.
Ill post an update once done.

Thanks.

Please Log in or Create an account to join the conversation.

More
8 years 2 months ago #18918 by ARSALAN
Replied by ARSALAN on topic Select Printer Form
Form Name is the field of application "REPORT.CONTROL", and that FORM NAME is the ID of the application DE.FORM.TYPE where you can align the page. PRINTER.ID is attached in the application DE.FORM.TYPE in the field Printer ID. This is how it is linked.

Further PRINTER.ATTRIBUTES is for more detailing, and Printer Attributes ID is also attached in the application of DE.FORM.TYPE.

Please Log in or Create an account to join the conversation.

  • jernike
  • jernike's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Im a NewBie
More
8 years 2 months ago #18922 by jernike
Replied by jernike on topic Select Printer Form
@JPB,

Thanks for the Help.
I have tried the solution you have provided and it really works.
Thanks a Lot.

@Arsalan

Thanks for the Clarification.

Please Log in or Create an account to join the conversation.

Time to create page: 0.108 seconds