Sep 162011
 

A new version of DYMO Label Framework JavaScript library is available.

This version improves detection of supported browsers, or more precise unsupported ones. There is a known problem with Safari 5.1 running in 32-bit mode on both Mac OS X 10.6 and 10.7. Before version 1.2.3 the library did not detect this problem. Now, the call to dymo.label.framework.checkEnvironment() will return an error.

The js script file is available from http://labelwriter.com/software/dls/sdk/js/DYMO.Label.Framework.1.2.3.js.

The http://labelwriter.com/software/dls/sdk/js/DYMO.Label.Framework.latest.js has been updated to version 1.2.3 as well.

  15 Responses to “DYMO Label Framework JavaScript Library 1.2.3”

  1. This is great stuff, Vlad. Thank you.

    I am having a devil of a time with a duplicate printing issue. For some reason I have yet to determine, I am getting duplicate labels printing for each batch. We have an application (ministrybox.org) where we print badges for checking into events. Each checkin prints a tag for the attendee, and potentially a “pickup tag” for a parent and an “asset tag” for bags, etc. that may go with the attendee in the case of children.

    The app only runs on Firefox.

    For some reason, on Windows PCs and laptops, this code generates two copies on many machines (but not all). On Macs it appears to run quite well.

    Is this a known issue? Do you have any tips on where to look for such a problem?

    Thank you.

    • It is NOT a known issue, we did not hear anything like that, not for other SDK APIs, not for DLS itself. Could it be an operator/human error, like pressing a print button twice? If you can 100% guarantee that it is not a human error, then we will need executing environment information, like Winows version, DLS version, label file used, the library calls/code snippet. Thanks.

  2. Hello,

    I just installed the framework. I have the FireFox plug-in version 8.3.1.1332 installed in FireFox. When I run the FunctionalTests.html page, I receive quite a few errors concerning the NPObject:

    printLabelTest_450Turbo failed: Error: Error calling method on NPObject!
    renderLabelTest failed: Error: Error calling method on NPObject!
    openLabelXmlTest failed: Error: Error calling method on NPObject!
    labelRenderTest failed: Error: Error calling method on NPObject!
    labelRenderWithPrinterResolutionTest failed: Error: Error calling method on NPObject!
    printLabelWriterLabelWithParamsTest_450Turbo failed: Error: Error calling method on NPObject!
    printWithLabelSetTest_450Turbo failed: Error: Error calling method on NPObject!
    printBarcodeLabelWithLabelSetTest_450Turbo failed: Error: Error calling method on NPObject!

    What step have I missed here?

    Thanks,

    Don

    • FunctionalTests.html is really an internal test tool, it can fail a lot if you don’t have a right setup. If you want to check the installation try http://labelwriter.com/software/dls/sdk/samples/js/CheckEnvironment/CheckEnvironment.html

      As for the errors, make sure you restarted the browser after the DLS installation.

      • I have done so. I even uninstalled everything, restarted, re-installed, re-started, installed the SDK, re-started. When I run the Preview and Print Label example in FireFox, I get and JavaScript error “Error calling method on NPObject!”

        An additional piece of information: the DYMO Label x.8 application will not run on my machine. It shows the splash screen, then disappears with a beep. No error message, nothing. However, I have succeeded in building a PDF file the size of a label and having it print to the label printer, so I know that at some level the printer works.

        • The fact that DLS does not work is a hint, the SDK shares a lot of with DLS libraries. What is your system configuration? windows version, etc? Could you run DebugView and then run your app or our samples, collect logs and e-mail me (vbuzuev at dymo dot com) and/or collect DLS logs by using LWSupport utility located in the Support folder of DLS installation folder. Thanks.

        • Just a followup: the issue has been resolved. The problem was with an OCR tool that improperly install a font with the path “C:windowsystem32c:windowocra32.ttf” as one of HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionFonts values. After removing the invalid path entry, both DLS and JS-library start working properly. Notice, that the problem is deep inside WPF (FontFamily static constructor) and not in DLS/SDK code.

          • I am getting the same error , How do i get this path deleted ? or solved.. can you talk me through how you resolved this please?

            do i have to delete anything or??

            Thank you

          • Ia your app based on web? or windows?

  3. Thank you for tip with DebugView. Solved my NPObject error under FF7 @ WServer 2008R2
    It was a result of missing font under a bit strange path to lookup the font.
    [11336] DYMO Label Framework Plugin: Printing Error: Could not find file ‘C:USERSADMINISTRATORWINDOWSFONTSarialbd.ttf’.

  4. The links on this page are broken and my code references the DYMO.Label.Framework.1.2.3.js files that no longer exist. How can I get a copy of these updated files?

    • Labelwriter.com is currently down. We are working to resolve this issue. We will update the latest blog post when the site is back up and running.

  5. Hi!
    We are still experiencing the same issue with Internet Explorer 11 and DYMO.Label.Framework.latest.js (dymo.label.framework.VERSION = “1.2.4”)

    dymo.label.framework.checkEnvironment()
    {
    [functions]: ,
    __proto__: { },
    errorDetails: “DYMO Label Framework Plugin is not installed”,
    isBrowserSupported: true,
    isFrameworkInstalled: false
    }

    Any help will be appreciated.

  6. Thanks for the tip about DebugView! We had a customer who was encountering this error. It turned out to be an application bug: we were instantiating LabelSets but not adding any LabelRecords (the customer selected quantity: 0). On mac, it actually printed on label in this case. On windows, we got that error.

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)