FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Adressing Dymo Labelwriter 400
Posts: 67
Joined: Mon Dec 26, 2005 07:44 AM
Adressing Dymo Labelwriter 400
Posted: Thu Jun 29, 2006 06:38 PM

Hi,

I want to be able to print labels on a Dymo Labelwriter 400, and have asked the supplier for some info. They've sent me a SDK of 5MB.

Before i start digging into this, i was wondering if anyone already may have dealt with this printer before and has some code available?

Thanks in advance!

John.
(I'm using FWH 2.7, Borland 5.5.1 and xHarbour 0.99.60)

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Adressing Dymo Labelwriter 400
Posted: Fri Jun 30, 2006 04:41 PM

You can't just use the regular print device driver?

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Dymo Label
Posted: Fri Jun 30, 2006 06:21 PM

I use the Turbo 330 and run it from within a program. Here is the code I use:

FUNCTION ShipLabel
// Declare variables
LOCAL oDbf, nRow := 0

PRINT oPrn NAME "Report Printing" TO "DYMO LabelWriter 330 Turbo" // FROM USER

// Define the fonts to be used
DEFINE FONT oFnorm NAME "Courier New" SIZE 0, - 12 OF oPrn
DEFINE FONT oFbold NAME "Courier New" SIZE 0, - 12 BOLD OF oPrn
nRsp := oPrn:nVertRes() / 20 // Number of rows
nCsp := oPrn:nHorzRes() / 40 // Number of columns
oPrn:SetLandscape( )
nRow := 2 * nRsp

PAGE
oPrn:Say( nRow, 10 * nCsp, "MasterLink Software", oFbold )
nRow += nRsp
oPrn:Say( nRow, 15 * nCsp, "PO Box 740", oFbold )
nRow += nRsp
oPrn:Say( nRow, 5 * nCsp, "Trabuco Canyon, CA 92678-0740", oFbold)
nRow += nRsp
oPrn:Say( nRow, 2 * nCsp, "_________", oFnorm )
nRow += 2 * nRsp
oPrn:Say( nRow, 2 * nCsp, oCli:company, oFnorm )
nRow += nRsp
oPrn:Say( nRow, 2 * nCsp, oCli:street, oFnorm )
nRow += nRsp
oPrn:Say( nRow, 2 * nCsp, TRIM(oCli:city) + ", " + oCli:state + " " + oCli:zipcode, oFnorm )
ENDPAGE
ENDPRINT
oFnorm:end()
oFbold:end()

RETURN NIL

The same, I suspect, would work with the 400. I hope this helps.

Tim

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 67
Joined: Mon Dec 26, 2005 07:44 AM
Adressing Dymo Labelwriter 400
Posted: Sat Jul 01, 2006 05:32 AM

Hi Tim,

thanks, this looks much more easier than the samples in the provided SDK! :-)

One remaining question: do you also use barcodes with this printer and if so, how?

Best regards,

John.

Continue the discussion