Skip to Content
0
Former Member
Aug 04, 2016 at 07:12 PM

Powerbuilder print to thermal (continuous)

937 Views

Hi guys,

I'm trying to print a receipt to a thermal printer, 8cm wide paper, continuous.

(Bematech MP-4200 TH, from www.bematech.com.br/suporte/equipamento/mp-4200-th, using the spool driver "bemasetupspooler_MP4K_64_bits", just in case you're curious).

The thing is, PB (12.5, Windows 10 64) is including a page break that I'm not being able to suppress.

It's a small receipt: some info on header, about 20 detail lines (it works if fewer details, like 5 or so) and some summary data.

I have tried setting the page properties to a loooong page, but it hasn't worked so far. (Both from printPreview and sending to the printer)

The page even shows as quite long, but the print area (the blue retangle on the print preview mode) doesn't go beyond a certain extent, creating a page break.

I found something from Crystal Reports, but I can't find the same option in PB (scn.sap.com/thread/1930952)

What would you suggest me do?

Thanks,

Daniel

PS. Sample code:

ads_ref.Object.DataWindow.Print.Paper.Size = 256

ads_ref.Object.DataWindow.Print.CustomPage.Width = 80

ads_ref.Object.DataWindow.Print.CustomPage.Length = 80000

ads_ref.Object.DataWindow.Print.Margin.Top = '0'

ads_ref.Object.DataWindow.Print.Margin.Bottom = '0'

ads_ref.Object.DataWindow.Print.Margin.Left = '0'

ads_ref.Object.DataWindow.Print.Margin.Right = '0'

ads_ref.Print()