dymojs icon indicating copy to clipboard operation
dymojs copied to clipboard

how do you print to the right or left label on a labelwriter 450 twin turbo?

Open dchan14 opened this issue 7 years ago • 7 comments

great package works fine for a single sided printer but how do i get these options paramsXml: dymo.label.framework.createLabelWriterPrintParamsXml({copies:1,twinTurboRoll:'Right',printQuality:'Text'}), labelSetXml: new dymo.label.framework.LabelSetBuilder(), labelXmlDymo: dymo.label.framework.openLabelXml(labelXml),

dchan14 avatar Jan 29 '18 20:01 dchan14

I saw your fork, where you added functionality for printparams. Does this mean you can choose to print left or tight using a 450 twin turbo?

NicolaiF avatar Apr 02 '18 18:04 NicolaiF

printparams = '<LabelWriterPrintParams><TwinTurboRoll>Left </TwinTurboRoll></LabelWriterPrintParams>'

On Mon, Apr 2, 2018 at 2:02 PM, NicolaiF [email protected] wrote:

I saw your fork, where you added added (?) functionality for printparams. Does this mean you can choose to print left or tight using a 450 twin turbo?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dsandor/dymojs/issues/3#issuecomment-377995470, or mute the thread https://github.com/notifications/unsubscribe-auth/AFTlHE4X3CnZuph5fXscXKXkjbKxRQ82ks5tkmeagaJpZM4RxUkg .

dchan14 avatar Apr 02 '18 21:04 dchan14

Superb, thanks man!

NicolaiF avatar Apr 03 '18 08:04 NicolaiF

Hello, Could you please let me know where to add printparams = '<LabelWriterPrintParams><TwinTurboRoll>Left </TwinTurboRoll></LabelWriterPrintParams>'? Thank you!

satrugna avatar Jan 19 '22 07:01 satrugna

printparams = '<LabelWriterPrintParams><TwinTurboRoll>Left </TwinTurboRoll></LabelWriterPrintParams>' On Mon, Apr 2, 2018 at 2:02 PM, NicolaiF @.***> wrote: I saw your fork, where you added added (?) functionality for printparams. Does this mean you can choose to print left or tight using a 450 twin turbo? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#3 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AFTlHE4X3CnZuph5fXscXKXkjbKxRQ82ks5tkmeagaJpZM4RxUkg .

Can you help where exactly we need provide this tag in xml?

srikanthpavuluri avatar Jan 19 '22 07:01 srikanthpavuluri

If you check the source code for dchan's fork https://github.com/dchan14/dymojs/blob/master/lib/index.js#L24 you'll see it's the third parameter of the print function

So you'll do something like this dymo.print( printerName, // Name of the printer you're using printlabel(), // The main XML that you're printing<LabelWriterPrintParams><TwinTurboRoll>Right</TwinTurboRoll></LabelWriterPrintParams> // third parameter for PrintParams );

NicolaiF avatar Jan 26 '22 15:01 NicolaiF

Yeah! Thanks a lot. Will try that.

But we are unable to print labels from the application hosted on a server. And it works absolutely fine in local env.

For example - http://localhost:41951/ -> works fine in local.

Will the hostname change in the non-local/prod application?

but when it is accessed from the hosted application it fails to get the connection status of the Dymo service.

srikanthpavuluri avatar Jan 26 '22 16:01 srikanthpavuluri