Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #13451 > unrolled thread
| Started by | aurora baccio <aurorabaccio@gmail.com> |
|---|---|
| First post | 2021-10-15 07:04 -0700 |
| Last post | 2021-10-16 12:19 +0200 |
| Articles | 4 — 4 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
print on dymo aurora baccio <aurorabaccio@gmail.com> - 2021-10-15 07:04 -0700
Re: print on dymo "Wolfgang Riedmann" <wriedmann@gmail.com> - 2021-10-15 17:13 +0200
Re: print on dymo Phil McGuinness <sherlocksoftware@gmail.com> - 2021-10-15 23:29 -0700
Re: print on dymo Franz Rachbauer <office@rachbauer.org> - 2021-10-16 12:19 +0200
| From | aurora baccio <aurorabaccio@gmail.com> |
|---|---|
| Date | 2021-10-15 07:04 -0700 |
| Subject | print on dymo |
| Message-ID | <8dae9e44-8d1f-4d55-b4fd-33ca652b4c89n@googlegroups.com> |
good morning I need to create a label to print on a dymo 450. Currently I use word, but it becomes more and more complex when printing. How can I create a text file for the dymo to print? The size of the label to be printed is three centimetres wide by five centimetres high. I was able to find the horizontal x five cm labels, but I can't create the file to send to the dymo printer. thanks Aurora Baccio
[toc] | [next] | [standalone]
| From | "Wolfgang Riedmann" <wriedmann@gmail.com> |
|---|---|
| Date | 2021-10-15 17:13 +0200 |
| Message-ID | <istk4sFsmf8U1@mid.individual.net> |
| In reply to | #13451 |
Hi Aurora, what tool do you use for your normal reports? If it is ReportPro, you should also be able to define a report with a particular page format, and print your labels. Unfortunately I cannot help you with ReportPro as I don't use it personally. But I have used in past my own report tool with Dymo label printers, and continue to use it with Zebra label printers. Wolfgang aurora baccio wrote: > good morning > I need to create a label to print on a dymo 450. > Currently I use word, but it becomes more and more complex when > printing. How can I create a text file for the dymo to print? The > size of the label to be printed is three centimetres wide by five > centimetres high. I was able to find the horizontal x five cm > labels, but I can't create the file to send to the dymo printer. > thanks Aurora Baccio --
[toc] | [prev] | [next] | [standalone]
| From | Phil McGuinness <sherlocksoftware@gmail.com> |
|---|---|
| Date | 2021-10-15 23:29 -0700 |
| Message-ID | <4531cf21-a86d-4c01-9201-0761186a1a08n@googlegroups.com> |
| In reply to | #13452 |
snip[ ReportPro, you should also be able to define a report with a > particular page format, and print your labels. Using HandCoded ReportPRo.. quite easy. Phil McGuinness > --
[toc] | [prev] | [next] | [standalone]
| From | Franz Rachbauer <office@rachbauer.org> |
|---|---|
| Date | 2021-10-16 12:19 +0200 |
| Message-ID | <ske8v3$mf0$1@gioia.aioe.org> |
| In reply to | #13451 |
Hi Aurora,
I'm printing Barcode labels directly to the printer. I define a template
with a simple Texteditor containing some placeholders (#TXT#, #EAN#, ..)
which I replace before printing:
Franz
// Build finished label
PROCEDURE PrintLabel( cPrinter AS STRING,;
cLabel AS STRING,;
cTxt AS STRING,;
cArtnr AS STRING,;
cEan AS STRING,;
nVkp AS FLOAT)
LOCAL cVal AS STRING
// Read template
cVal := MemoRead(cLabel)
// Replace placeholders
cVal := StrTran(cVal, "#TXT#", AllTrim(cTxt))
cVal := StrTran(cVal, "#ARTNR#", AllTrim(cArtnr))
cVal := StrTran(cVal, "#EAN#", AllTrim(cEan))
cVal := StrTran(cVal, "#VKP#", Str(nVkp,7,2))
// Print to windows printer
WriteData2Printer(cPrinter, cVal)
RETURN
// Print function I got somethere from usergroup
FUNCTION WriteData2Printer (cPrinter AS STRING,;
cData AS STRING) AS LOGIC PASCAL
LOCAL lResult AS LOGIC
LOCAL hPrinter AS PTR
LOCAL pszPrinter AS PSZ
LOCAL pBuffer AS PTR
LOCAL dwWritten AS DWORD
LOCAL pDocInfo IS _winDoc_Info_1
LOCAL pPtrDflts IS _WINPRINTER_DEFAULTS
lResult := FALSE
pszPrinter := StringAlloc(cPrinter + _CHR(0))
IF OpenPrinter(pszPrinter, @hPrinter, @pPtrDflts ) // NULL
pBuffer := StringAlloc(cData + _CHR(0))
pDocInfo.pDocName := String2Psz("PrinterSpooler Document")
pDocInfo.pOutPutFile := NULL_PSZ // String2Psz (NULL_STRING)
pDocInfo.pDatatype := String2Psz ("RAW")
IF StartDocPrinter(hPrinter, 1, @pDocInfo) <> 0
IF WritePrinter(hPrinter, pBuffer, SLen(cData), @dwWritten)
IF dwWritten == SLen(cData)
lResult := TRUE
ENDIF
ELSE
dwWritten := GetLastError()
ENDIF
EndDocPrinter(hPrinter)
ELSE
dwWritten := GetLastError()
ENDIF
ClosePrinter(hPrinter)
MemFree(pBuffer)
ELSE
dwWritten := GetLastError()
ENDIF
MemFree(pszPrinter)
RETURN lResult
Am 15.10.2021 um 16:04 schrieb aurora baccio:
> good morning
> I need to create a label to print on a dymo 450.
> Currently I use word, but it becomes more and more complex when printing.
> How can I create a text file for the dymo to print? The size of the label to be printed is three centimetres wide by five centimetres high.
> I was able to find the horizontal x five cm labels, but I can't create the file to send to the dymo printer.
> thanks
> Aurora Baccio
>
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web