Dynamic Link Library PrnFiscalDLL32 Ver 8.2-2016
Dynamic Link Library PrnFiscalDLL32 Ver 8.2-2016
INDEX
INTRODUCTION 4
GENERAL DESCRIPTION 5
FUNCTIONS DESCRIPTION 12
CANCELTRANSACTION 12
CLOSEDOC 13
CLOSEPORT 15
CONFIGIVA 16
CONFIGPAY 17
DELETELOG 18
DISABLEDLOG 19
ENABLEDLOG 20
GENRPTZ 21
NEWDOC 22
NEWITEM 24
OPENBOX 25
OPENPORT 26
OPRDOC 27
PRINTDOCUMENT 28
PRINTTEXTNOFISCAL 30
PRNCHEQUEF 32
QRYJOURNALBLOCK 33
QRYJOURNALDOCUMENT 34
QUERYPRNFIRMWARE 35
QUERYPRNJOURNAL 36
QUERYPRNMEMORY 37
QUERYPRNSTATUS 39
QUERYPRNTRANSACTION 42
READJOURNAL 45
READJOURNALRESUME 46
READMEMORY 47
RELEASEDLL32 48
RPTX 49
RPTZ 50
SEARCHJOURNALRANGE 52
SEARCHLOG 53
SEARCHPRN 54
SETMSGERR 55
SETTIMEOUTS 56
2
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
APPENDIX A 66
QUERYPRNSTATUS PARAMETERS RETURNS BY PRINTER MODEL 66
7197-F 66
7167-F 67
A-721-F 68
3
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
Introduction
4
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
General description
5
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
3. In Visual BASIC 6: String Data type sent ByVal in the finished definition of DLL
definitions of Strings of fixed size: Dim CString As String * n+1, where n is the
maximum length of string to receive by reference plus an additional position for null
6
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
Type TQueryPrnStatus
UltSecX As String * 3 `The size is 2 + a position for CHR (0)
NTickets As String * 13 `The size is 12 + a position for CHR (0)
PrnStatusHdw As String * 3 `The size is 2 + a position for CHR (0)
ErrStatus As String * 3 `The size is 2 + a position for CHR (0)
PaperStatus As String * 3 `The size is 2 + a position for CHR (0)
SlipStatus As String * 3 `The size is 2 + a position for CHR (0)
PrnID As String * 11 `The size is 10 + a position for CHR (0)
TCounter As String * 7 ` The size is 6 + a position for CHR (0)
IvaA As Double
IvaB As Double
IvaC As Double
PrnStatusApp As Byte
LineCounter As Byte
AutStatus As Byte
End Type
Strings finished in null received in VB6, at the end of the string will have the
character CHR (0), which can be eliminated with a simple function of dynamic
substitution of strings of fixed length strings:
Chr2Str = vbString
End Function
7
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
LongWord: They are numeric fields that represent integer numbers without sign in 4
bytes.
All the fields of values that represent amounts stored in the fiscal memory, pass by
reference from the DLL to the application in a String format of length 14; of which
the first 12 characters represent the whole part and last the 2 characters represent the
decimal part of the amount. The decimal point is not sent. This means that, when
receiving this String, the application will have on the first place, to turn it from
character to number and then it will have to divide it by 100 to obtain the amount that
8
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
Function Description
Function CancelTransaction () Cancels a Transaction ( Fiscal or nonFiscal)
Function CloseDoc () Closes a Document
Function ClosePort () Closes the Port of the Fiscal Printer
Function ConfigIva () Configurates the Taxes of the Fiscal Printer
Function ConfigPay () Configurates the Names of the Payments Forms
Function DeleteLog () Deletes the Transactions Log
Function DisabledLog () Disables the Transactions Log
Function EnabledLog () Enables the Transactions Log
Function GenRptZ () Prints the Z Report and saves the totals to the Fiscal
Memory
Function NewDoc () Initiates the Process of Document Creation
Function NewItem () Adds/deletes an Item in Invoices or Returns
Function OpenBox () Opens the Cash Drawer
Function OpenPort () Opens the Port of the Fiscal Printer
Function OprDoc () Generates Cancellations, Discounts and Reductions in
Invoices and Returns.
Function PrintDocument() Reprints an invoice, return or a Z Report (from the
journal memory) as a nonfiscal document.
Function PrintTextNoFiscal () Prints nonFiscal Text
Function PrnChequeF () Prints a Check and its Endorsement
Function QryJournalBlock() Queries the records of an specifc journal memory block
Function QryJournalDocument() Queries an specific document from the journal memory
Function QueryPrnFirmware() Queries the firmware version
Function QueryPrnJournal() Queries the journal memory variables
Function QueryPrnMemory() Queries any of the 1825 Z Reports that are saved in the
fiscal memory
Function QueryPrnStatus () Queries the Status of the Fiscal Printer
Function QueryPrnTransaction () Queries the Working Memory and the Last X Report
Function ReadJournal() Reads the information stored in the Journal Memory
and download it to a TXT file
Function ReadJournalResume() Reads and downloads to a TXT file a resume of the
information from the documents stored in the Journal
Memory
Function ReadMemory() Reads the information stored in the Fiscal Memory and
download it to a TXT file.
Function ReleaseDLL32 Visualizes the DLL of 32 Bits version
Function RptX () Prints the X Report
Function RptZ () Prints the Z Report by Time intervals
Function SearchJournalRange() Searchs the upper and lower blocks from the Journal
Memory next to a given range date
Function SearchLog () Determines if the Transactions Log is Active
Function SearchPrn () Determines if the Fiscal Printer this On Line
Function SetMsgErr () Enables or Disables the Msg function of the DLL
9
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
Function Description
Function CancelTransaction () Cancels a Transaction ( Fiscal or nonFiscal)
Function CloseDoc () Closes a Document
Function NewDoc () Initiates the Process of Document Creation
Function NewItem () Creates an Item in Invoices or Returns
Function OprDoc () Generates Cancellations, Discounts and Reductions in
Invoices and Returns.
Function PrintDocument() Reprints an invoice, return or a Z Report (from the
journal memory) as a nonfiscal document.
Function PrintTextNoFiscal () Print nonFiscal Text
Query Functions
Function Description
Function QryJournalBlock() Queries the records of an specifc journal memory
block
Function QryJournalDocument() Queries an specific document from the journal
memory
Function QueryPrnFirmware() Queries the firmware version
Function QueryPrnJournal() Queries the journal memory variables
Function QueryPrnMemory() Queries any of the 1825 Z Reports that are saved in the
fiscal memory
Function QueryPrnStatus () Queries the Status of the Fiscal Printer
Function QueryPrnTransaction () Queries the Working Memory and the Last X Report
Reports Functions
Function Description
Function GenRptZ () Prints the Z Report
Function PrnChequeF () Print a Check and its Endorsement
Function RptX () Prints the X Report
Function RptZ () Prints the Z Report by Time intervals
10
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
Read Functions
Function Description
Function ReadJournal() Reads the information stored in the Journal Memory
and download it to a TXT file
Function ReadJournalResume() Reads and downloads to a TXT file a resume of the
information from the documents stored in the Journal
Memory
Function ReadMemory() Reads the information stored in the Fiscal Memory and
download it to a TXT file.
Function SearchJournalRange() Searchs the upper and lower blocks from the Journal
Memory next to a given range date
Control Functions
Function Description
Function ClosePort () Closes the Port of the Fiscal Printer
Function OpenBox () Opens the Recording Box
Function OpenPort () Opens the Port of the Fiscal Printer
Function ReleaseDLL32 () Visualizes the DLL of 32 Bits version
Function SearchPrn () Determines if the Fiscal Printer this On Line
Log Functions
Function Description
Function DeleteLog () Deletes the Transactions Log
Function DisabledLog () Disables the Transactions Log
Function EnabledLog () Enables the Transactions Log
Function SearchLog () Determines if the Transactions Log is Active
Configuration Functions
Function Description
Function ConfigIva () Configurates the Taxes of the Fiscal Printer
Function ConfigPay () Configurates the Names of the Payments Forms
Function SetMsgErr () Enables or Disables the Msg function of the DLL
11
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
Functions Description
CancelTransaction
Syntax:
Description:
This function cancels the actual transaction. It allows to cancel an invoice or return
without affecting the fiscal totals and leaving the Fiscal Printer ready for any other
operation, as to initiate a new invoice or return, request a status or totals query or to
print reports.
Returning Values:
Type: Integer.
Result = 0: The operation was successful.
Result <> 0: The operation failure (See Error Codes Listing)
Parameters: None.
12
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
CloseDoc
Syntax:
Description:
This function closes the actual document (Invoice, Return or nonFiscal Document)
and updates the Fiscal Memory.
Returning Values:
Type: Integer.
Result = 0: The operation was successful.
Result <> 0: The operation failure (See Error Codes Listing)
Parameters:
Note: All the previous data are optional for the closing of a Fiscal Document.
13
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
The fiscal printers print a bar code for the ASCII characters entered in the
BarcodeData variable and in accordance with the bar code type that is found in
the BarcodeTipo variable.
The max length of the BarcodeData is 26 characteres.
If the width of the bar code exceeds one line, the barcode is not printed.
The check digit is calculated for UPC and JAN (EAN) codes if it is not sent
from the host computer. Six-character zero-suppressed UPC-E tags are
generated from full 11 or 12 characters sent from the host computer according to
standard UPC-E rules. Start/Stop characters are added for Code 39 if they are
not included.
The value of BarcodeTipo selects the bar code system as described in the table.
The variable BarcodeData indicates the character code to be encoded into the specified
bar code system. If character code in BarcodeData cannot be encoded, the printer prints
the bar code data processed so far, and the following data is treated as normal data.
14
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
ClosePort
Syntax:
Description:
This function closes the serial port manager for the communication with the Fiscal
Printer.
Returning Values:
Type: Integer.
Result = 0: The operation was successful.
Result <> 0: The operation failure (See Error Codes Listing)
Parameters: None.
15
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
ConfigIVA
Syntax:
Description:
Type: Integer.
Result = 0: The operation was successful.
Result <> 0: The operation failure (See Error Codes Listing)
Parameters:
16
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
ConfigPay
Syntax:
Description:
This function changes the name of the payment forms of the Fiscal Printer which go
numbered from the 0 to the 5. This operation can be done up to 255 times, for all the 6
payments types.
Returning Values:
Type: Integer.
Result = 0: The operation was successful.
Result <> 0: The operation failure (See Error Codes Listing)
Parameters:
17
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
DeleteLog
Syntax:
Description:
This function deletes the historical transaction log from the application’s directory.
The historical transactions log file is named “HstPrnCmd.log” and it is located in the
PATH of the DLL.
Returning Values:
Type: Integer.
Result = 0: The operation was successful.
Result <> 0: The operation failure (See Error Codes Listing)
Parameters: None.
18
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
DisabledLog
Syntax:
Description:
Type: Integer.
Result = 0: The operation was successful.
Result <> 0: The operation failure (See Error Codes Listing)
Parameters: None.
19
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
EnabledLog
Syntax:
Description:
This function activates the historical transactions log on the application’s directory.
Returning Values:
Type: Integer.
Result = 0: The operation was successful.
Result <> 0: The operation failure (See Error Codes Listing)
Parameters: None.
20
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
GenRptZ
Syntax:
Description:
This function records the totals of the day in the Fiscal Memory, resets the totals
from the working memory and prints a the Z Reports. It leaves the printer ready for the
next day. This function must be called at least once at a working day.
Returning Values:
Type: Integer.
Result = 0: The operation was successful.
Result <> 0: The operation failure (See Error Codes Listing)
Parameters:
21
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
NewDoc
Syntax:
Description:
Type: Integer.
Result = 0: The operation was successful.
Result <> 0: The operation failure (See Error Codes Listing)
22
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
Parameters:
23
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
NewItem
Syntax:
Description:
This function permits to add or void an item on the document (Invoice or Return)
Returning Values:
Type: Integer.
Result = 0: The operation was successful.
Result <> 0: The operation failure (See Error Codes Listing)
Parameters:
24
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
OpenBox
Syntax:
Description:
This function opens the Cash Drawer that is connected to the Fiscal Printer.
Returning Values:
Type: Integer.
Result = 0: The operation was successful.
Result <> 0: The operation failure (See Error Codes Listing)
Parameters: None.
25
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
OpenPort
Syntax:
Description:
This function opens the serial port’s manager for the communication with the Fiscal
Printer. This function accepts any valid serial port in the POS.
Returning Values:
Type: Integer.
Result = 0: The operation was successful.
Result <> 0: The operation failure (See Error Codes Listing)
Parameters:
Note:
1.- The SerialPort parameter accepts any valid value of serial port in the rank from 0 to
255, ejm: COM1 = 1, COM2 = 2, COM3 =3 and so on.
2.- The ComBps parameter accepts only 1=19200 BPS (A-721-F) or 2=115200 BPS
(7197-F, 7167-F).
26
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
OprDoc
Syntax:
Description:
This function allows to generate surcharge and discount operations and the
respective cancellations in the fiscal documents (Invoices or Returns).
Returning Values:
Type: Integer.
Result = 0: The operation was successful.
Result <> 0: The operation failure (See Error Codes Listing)
Parameters:
27
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
PrintDocument
Syntax:
Description:
This function allows reprint an invoice, an return or a Z Report (from the journal
memory) as a nonfiscal document, that means that every 4 lines of nonfiscal text
printed, the fiscal printer will print a fifth line with the phrase “NO FISCAL” in capital
letters.
This function is valid only on the 7197-F and 7167-F thermal fiscal printers (with
electronic journal).
Returning Values:
Type: Integer.
Result = 0: The operation was successful.
Result <> 0: The operation failure (See Error Codes Listing)
28
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
Parameters:
29
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
PrintTextNoFiscal
Syntax:
Function PrintTextNoFiscal (_
ByVal TFonts As Byte, _
ByVal TextNoFiscal As String, _
ByVal NumLine As Byte, _
ByVal Buffer As Byte _
) As Integer
Description:
This function allows printing nonfiscal text within a NonFiscal Document or within
an Invoice or a Return.
If used within a Nonfiscal Document, every 4 lines of nonfiscal text printed, the
fiscal printer will print a fifth line with the phrase “NO FISCAL” in capital letters.
If used within an Invoice or Return, the phrase “NO FISCAL” is never printed. This
command can be used after the NewDoc and NewItem functions as unbuffered and
before CloseDoc as buffered; when the CloseDoc function is called, the printer will
print the buffered text lines before the dot line that comes before the Fiscal Logo Line
(the very last line printed in a fiscal document that conteins the MH and the fiscal
printer serial number). This buffered lines are intended to be used as a footer on the
Invoices or Returns. The fiscal printer allows up to 10 lines of nonfiscal lines as a footer
(0 to 9) and the 0 is used for a description on the Global Discounts and or Returns.
Returning Values:
Type: Integer.
Result = 0: The operation was successful.
Result <> 0: The operation failure (See Error Codes Listing)
30
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
Parameters:
31
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
PrnChequeF
Syntax:
Description:
Print a check with all its data and allow to endorse it. The optional fields are
grouped by type of process: 0= (DiaChq, MesCheq, AnoCheq, Amount, Adressee), 1=
(NumCta, TitularCta, BancoCta), 2= (To print Check or Endorsement). According to
the process to make, the other external fields to the group are optional.
Returning Values:
Type: Integer.
Result = 0: The operation was successful.
Result <> 0: The operation failure (See Error Codes Listing)
Parameters:
32
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
QryJournalBlock
Syntax:
Description:
This function returns the records of an specifc journal memory block. This records
contain the documents registered in that journal memory block.
Note: The Journal Block Number for an specific date can be obteined using the
DLL’s function SearchJournalRange
Returning Values:
Type: Integer.
Result = 0: The operation was successful.
Result <> 0: The operation failure (See Error Codes Listing)
Parameters:
33
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
QryJournalDocument
Syntax:
Description:
This function returns an specific document from the journal memory. This document
can be obteined through 3 parameters: type of document, document’s consecutive and
the date when the document was issued. This function creates in the hard disk a TXT
file named JournalDocument.txt that contains the document found and which can be
easily processed and/or displayed.
Returning Values:
Type: Integer.
Result = 0: The operation was successful.
Result <> 0: The operation failure (See Error Codes Listing)
Parameters:
34
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
QueryPrnFirmware
Syntax:
Description:
Returning Values:
Type: Integer.
Result = 0: The operation was successful.
Result <> 0: The operation failure (See Error Codes Listing)
Parameters:
35
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
QueryPrnJournal
Syntax:
Description:
Returning Values:
Type: Integer.
Result = 0: The operation was successful.
Result <> 0: The operation failure (See Error Codes Listing)
Parameters:
36
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
QueryPrnMemory
Syntax:
Function QueryPrnMemory (_
ByVal MemRptZ As Integer, _
ByRef PrnMem As TQueryPrnMemory _
) As Integer
Description:
This function allows to query any of the 1825 Z Reports that are saved in the fiscal
memory, from the 1 to the 1825.
Returning Values:
Type: Integer.
Result = 0: The operation was successful.
Result <> 0: The operation failure (See Error Codes Listing)
Parameters:
37
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
38
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
QueryPrnStatus
Syntax:
Function QueryPrnStatus (_
ByRef PrnStatus As TQueryPrnStatus _
) As Integer
Description:
Type: Integer.
Result = 0: The operation was successful.
Result <> 0: The operation failure (See Error Codes Listing)
Parameters:
39
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
* See Apendix A
IvaA, IvaB, IvaC are strings of length 8 which they represent double numbers of 6 integers and
2 decimals without decimal point.
- On A-7121-F:
IvaA, IvaB, IvaC are strings of length 8 which they represent double numbers of 6 integers and
2 decimals without decimal point.
40
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
1: Returns
3: Z Report
4: Memory Report
The second byte represents the finish status of the last transaction:
0: Transaction finished OK
21 means that the last transaction was a return and it was cancelled because an
energy failure.
00 means that the last transaction was an invoice and finished OK.
When an invoice, return or a non fiscal document is cancelled by the user, the fiscal
printer increments the respective transaction counter, prints the frase “Transaccion
Anulada” (Transaction Cancelled) and prints the respective transaction document’s
footer:
Transaccion Anulada
MH JJD0000012
When an invoice, return or a non fiscal document is cancelled by an energy failure, the
fiscal printer increments the respective transaction counter, prints the frases
“Transaccion Anulada” “*Falla de Energia*”(Transaction Cancelled / Energy Failure)
and prints the respective transaction document’s footer:
*Falla de Energia*
Transaccion Anulada
MH JJD0000012
41
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
QueryPrnTransaction
Syntax:
Function QueryPrnTransaction (_
ByVal TReport AS Byte, _
ByRef PrnStatus AS TQueryPrnTransaction _
) As Integer
Description:
This function allows to query the Fiscal Printer’s Status (Working Memory and Last
X totals). The Working Memory always will contain the result of the last operation
made (NewDoc, NewItem, OprDoc, CloseDoc, RptX, RptZ, GenRptZ ). Last X totals
will contain the summary of all the transactions made with the Fiscal Memory (Updated
with CloseDoc) since the last Z Report emitted (GenRptZ). The data to consult are
passed and updated by DLL through the TQueryPrnTransaction structure, detailed at the
end of this function.
Returning Values:
Type: Integer.
Result = 0: The operation was successful.
Result <> 0: The operation failure (See Error Codes Listing)
42
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
Parameters:
43
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
TYPE TQueryPrnTransaction
RptDate AS ASCIIZ * 9
RptTime AS ASCIIZ * 9
RptAMPM AS ASCIIZ * 3
VoucherVta AS LONGWORD
VoucherDev AS LONGWORD
VtaA AS STRING * 14
VtaB AS STRING * 14
VtaC AS STRING * 14
VtaE AS STRING * 14
IvaVtaA AS STRING * 14
IvaVtaB AS STRING * 14
IvaVtaC AS STRING * 14
DscVtaA AS STRING * 14
DscVtaB AS STRING * 14
DscVtaC AS STRING * 14
DscVtaE AS STRING * 14
RcgVtaA AS STRING * 14
RcgVtaB AS STRING * 14
RcgVtaC AS STRING * 14
RcgVtaE AS STRING * 14
DevA AS STRING * 14
DevB AS STRING * 14
DevC AS STRING * 14
DevE AS STRING * 14
IvaDevA AS STRING * 14
IvaDevB AS STRING * 14
IvaDevC AS STRING * 14
DscDevA AS STRING * 14
DscDevB AS STRING * 14
DscDevC AS STRING * 14
DscDevE AS STRING * 14
RcgDevA AS STRING * 14
RcgDevB AS STRING * 14
RcgDevC AS STRING * 14
RcgDevE AS STRING * 14
FPago1 AS STRING * 14
FPago2 AS STRING * 14
FPago3 AS STRING * 14
FPago4 AS STRING * 14
FPago5 AS STRING * 14
FPago6 AS STRING * 14
END TYPE
The amounts sent like STRING * 14, represent fields type Double of 12 integers and 2 decimals without
decimal point.
44
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
ReadJournal
Syntax:
Description:
This function allows read the information stored in the Journal Memory and
download it to a TXT file.
Returning Values:
Type: Integer.
Result = 0: The operation was successful.
Result <> 0: The operation failure (See Error Codes Listing)
Parameters: None.
45
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
ReadJournalResume
Syntax:
Description:
This function downloads to a TXT file a resume of the information from the
documents stored in the Journal Memory. The basic information (Document type,
Document’s consecutive, Date and Time of issue) returned from this function can be
generated fast and is useful in certain times.
Returning Values:
Type: Integer.
Result = 0: The operation was successful.
Result <> 0: The operation failure (See Error Codes Listing)
Parameters: None.
46
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
ReadMemory
Syntax:
Description:
This function allows read the information stored in the Fiscal Memory and
download it to a TXT file.
Returning Values:
Type: Integer.
Result = 0: The operation was successful.
Result <> 0: The operation failure (See Error Codes Listing)
Parameters: None.
47
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
ReleaseDLL32
Syntax:
Description:
This function visualizes the version of the 32 bits DLL PrnFiscalDLL32 of the
Fiscal Memory. Its function is for version control.
Returning Values:
Type: Integer.
Result = 0: The operation was successful.
Result <> 0: The operation failure (See Error Codes Listing)
Parameters: None.
48
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
RptX
Syntax:
Description:
Print the X Report. This is a NonFiscal Report and can be substituted by an own’s
application X Report.
Returning Values:
Type: Integer.
Result = 0: The operation was successful.
Result <> 0: The operation failure (See Error Codes Listing)
Parameters:
49
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
RptZ
Syntax:
Function RptZ (_
ByVal TipRptZ AS Byte, _
ByVal IDiaRptZ AS Byte, _
ByVal IMesRptZ AS Byte, _
ByVal IAnoRptZ AS Byte, _
ByVal FDiaRptZ AS Byte, _
ByVal FMesRptZ AS Byte, _
ByVal FAnoRptZ AS Byte,_
ByVal EDiaRptZ As Byte, _
ByVal EMesRptZ As Byte, _
ByVal EAnoRptZ As Byte, _
ByVal EHHRptZ As Byte, _
ByVal EMMRptZ As Byte, _
ByVal ESSRptZ As Byte, _
ByVal EAMPMRptZ As Byte _
) AS Integer
Description:
Prints the Z Report between date intervals. These are Fiscal Reports and are
intended to be used by the Seniat.
There are two types of reports:
- Summarized day by day: summarize all the Z Reports emitted in a day a prints
one Z for the whole day and for each day within the solicited range.
- Summarized month by month: summarize all the Z Reports emitted in a month
a prints one Z for the whole month and for each month within the solicited
range.
At the end of each type of report, prints a summarized totals of the solicited range.
Returning Values:
Type: Integer.
Result = 0: The operation was successful.
Result <> 0: The operation failure (See Error Codes Listing)
50
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
Parameters:
51
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
SearchJournalRange
Syntax:
Description:
This function returns the upper and lower blocks from the Journal Memory next
to a given range date. This function is used with the function QryJournalBlock the
narrow or enclose the search within a range date. It’s is use is optative but is very useful
if combined with the functions QryJournalBlock, QryJournalDocument and
SearchJournalRange. For example: a range date can be chosen and the
SearchJournalRange will return the blocks range next to the dates (+/- un block),
QryJournalBlock will get this blocks and the QryJournalDocument function will let see
the information of an specific document within a block, all this displayed and in real
time directly from the fiscal printer.
Returning Values:
Type: Integer.
Result = 0: The operation was successful.
Result <> 0: The operation failure (See Error Codes Listing)
Parameters: None.
52
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
SearchLog
Syntax:
Description:
Returning Values:
Parameters: None.
53
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
SearchPrn
Syntax:
Description:
Returning Values:
Type: Integer.
Result = 0: The operation was successful.
Result <> 0: The operation failure (See Error Codes Listing)
Parameters:
54
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
SetMsgErr
Syntax:
Description:
This function enables or disables the messages function of the DLL. If the messages
function is enabled, the DLL will show an message error windows for the DLL errors
and for the Fiscal Memory errors, on the other hand, the DLL will not visualize any
error message (With exception of disc errors related to the Log and parameters errors of
the SetMsgErr function). On any case all the functions will return an error code to the
POS for their handling in case that this it is required.
Returning Values:
Type: Integer.
Result = 0: The operation was successful.
Result <> 0: The operation failure (See Error Codes Listing)
Parameters:
55
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
SetTimeOuts
Syntax:
Description:
This function set the timeout between the DLL and the fiscal printer. This timeout is
set by default in 2.
Note: Everytime the DLL starts, the timeout is reset to it’s default value. If you need
to change this value, you should do it everytime you start using the DLL.
Returning Values:
Type: Integer.
Result = 0: The operation was successful.
Result <> 0: The operation failure (See Error Codes Listing)
Parameters:
56
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
Init Create
Document
NewDoc
¿Cancel
Yes CancelTransaction
Document ?
No
¿Discounts
No NewItem Surcharges Yes OprDoc
Anulations ?
No
¿Close
Document ?
Si
CloseDoc
Print
Document
End Create
Document
57
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
NonFiscal Documents
Init Create
Document
NewDoc
¿Cancel
Yes CancelTransaction
Document ?
No
No
PrintTextNoFiscal
¿Close
Document ?
Yesi
CloseDoc
Print
Document
End Create
Document
Document
58
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
Check Printing
PrnChequeF
(Generate
)
¿Cancel
Yes CancelTransaction
Check ?
No
PrnChequeF
(Print )
Print Check
59
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
GenRptZ
Generates
( and RptX RptZ
Prints )
60
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
61
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
DLL Errors
62
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
63
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
Note:
1. The errors with the message “Without defining” will be used in future extensions of
the messages table.
2. The messages of the DLL begin in the 301 and ahead., those of the Fiscal Memory in
1 up to 255. The 256-300 range will be used in future versions of the Fiscal Memory
as required.
64
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
65
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
APPENDIX A
7197-F:
Slip status: 0x00 always. This printer does not support Slip Station.
66
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
7167-F:
67
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
A-721-F:
68
Summa Sistemas C.A. Dynamic Link Library PrnFiscalDLL32 Manual of Reference
Version 8.2 2016
69