Moderator: IDEAL Software Support
IDEAL Software Support wrote:Does this mean you are printing always a multiple length of an A4 page on the POS printer?
m.lcDevice = "EPSON TM-T88IV Receipt"
m.lnVSpacing = 500 && 5cm
with m.oForm2.oVPE
if .isOpen()
.closeDoc()
endif
.openDoc()
.AutoBreakMode = AUTO_BREAK_NO_LIMITS
*-- I'm still working with 1/10 of mm
*-- so all values shown in this sample appear
*-- to be ten times as big as You might expect them
.UnitTransformation = VUNIT_FACTOR_MM10
*-- working with a stored printer setup
*-- alternatively You would set the
*-- .Device = m.lcDevice
.SetupPrinter(<PrinterSetupFileName.prs>,0)
*-- I'm leaving pageHeight untouched and just
*-- set .PageWidth to 80mm
*.PageHeight = 4000
.PageWidth = 800
*-- then I set the desired margins. As this has
*-- to be done on a per page basis, an initPage()
*-- method does this in my classes. But for
*-- simplicity of the sample, let's duplicate
*-- that bit of code
.nLeftMargin = 40
.nRightMargin = .PageWidth - .nLeftMargin
.nTopMargin = 0
.nBottomMargin = .PageHeight
*-- small header
.VPEWrite(50, 200, VFREE, VFREE, "Testreport")
.VPEWrite(50, VBOTTOM, VFREE, VFREE, "PageHeight: "+trans(.pageHeight))
.VPEWrite(50, VBOTTOM, VFREE, VFREE, "PageWidth: "+trans(.pageWidth))
.VPEWrite(50, VBOTTOM, VFREE, VFREE, "VPE-Version: "+trans(.VPEVersion))
*-- followed by details
*-- seven sections of 5cm each
m.lnTop = 0
for m.lnI = 1 to 7
*-- this checks for available space and if necessary
*-- breaks onto the next page.
*-- If You comment this out, the report will end just
*-- under the line marked "25". The Rest would be
*-- visible on a vpe or pdf doc but never on paper.
if m.lnTop + m.lnVSpacing > .nBottomMargin
*-- not enough space for the next section.
*-- Break onto the next page and continue.
*--
*-- Note that I completely ignore the rest
*-- that would be available on the previous
*-- page and continue as if this clause would
*-- not exist.
.PageBreak
.nTop = 0
.nBottom = 0
.PageWidth = 800
.nLeftMargin = 40
.nRightMargin = .PageWidth - .nLeftMargin
.nTopMargin = 0
.nBottomMargin = .PageHeight
m.lnTop = 0
endif
m.lnTop = m.lnTop + m.lnVSpacing
.Line(VLEFTMARGIN, m.lnTop, -300, m.lnTop)
.Line(.nRightMargin-300, m.lnTop, .nRightMargin, m.lnTop)
.TextAlignment = ALIGN_CENTER
.Write(.nLeftMargin+300, lnTop-20, .nRightMargin-300, VFREE, trans(round(m.lnTop/100,2)))
endfor &&* m.lnI = 1 to 7
.PrintDoc(.F.)
*.WriteDoc("D:\TEMP\Test_Receipt.vpe")
*.WriteDoc("D:\TEMP\Test_Receipt.pdf")
endwith
IDEAL Software Support wrote:Thank you for the detailed reply. We would appreciate if you send the files by e-mail. If any other customer is interested, we will forward them.
While the bigger gap between "25" and the follwing "5" clearly does exist on the vpe and pdf documents, it is not visible on the printout.
Final-Recipient: RFC822; support@IdealSoftware.com
Action: failed
Status: 5.7.1
Remote-MTA: DNS; mail.IdealSoftware.com [2a01:4f8:d13:316::2]
Diagnostic-Code: SMTP; 550 5.7.1 <support@IdealSoftware.com>: Recipient address
rejected: Mail appeared to be SPAM or forged. Ask your
Mail/DNS-Administrator to correct HELO and DNS MX
settings or to get removed from DNSBLs; in
rhsbl.ahbl.org
IDEAL Software Support wrote:Indeed rhsbl.ahbl.org stopped working a few days ago. The problem has been fixed right now.
Users browsing this forum: No registered users and 19 guests