Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6919165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:57:18+00:00 2026-05-27T09:57:18+00:00

I am trying to automatically print a picking list directly to the printer. It

  • 0

I am trying to automatically print a picking list directly to the printer. It has already been picked. Here is a job that prints it, but it keeps going to the screen and not to the printer.

static void JobReprintPickingList(Args _args)
{
    Args args;
    ReportRun reportRun;
    SalesFormLetter salesFormLetter;
    PrintJobSettings printJobSettings;
    RecordSortedList list = new RecordSortedList(tablenum(WMSPickingRoute));
    WMSPickingRoute wmsPickingRoute = WMSPickingRoute::find('PkR 079256');
    ;

    if(!wmsPickingRoute)
        return;

    list.ins(wmsPickingRoute);

    args = new Args(ReportStr(WMSPickingList_OrderPick));
    args.designName("Standard");

    printJobSettings    = new PrintJobSettings();
    printJobSettings.deviceName('HP Universal Printing PCL 6');
    printJobSettings.setTarget(PrintMedium::Printer);
    printJobSettings.preferredTarget(PrintMedium::Printer);

    salesFormLetter  = new SalesFormLetter_PickingList(false);
    salesFormLetter.updatePrinterSettingsFormLetter(printJobSettings.packPrintJobSettings());

    args.caller(salesFormletter);
    args.parmEnum(PrintCopyOriginal::Original);
    args.parmEnumType(enumnum(PrintCopyOriginal));
    args.object(list);

    reportRun = new ReportRun(args);
    reportRun.init();
    reportRun.run();
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T09:57:19+00:00Added an answer on May 27, 2026 at 9:57 am

    I figured out the answer. I had to add this line:

    printJobSettings.lockDestinationProperties(true);
    

    This force it to the printer anway.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to make a script that automatically starts uploading after the data has
I am trying to make a program that automatically corrects the perspective of a
I'm trying to fill-out a form automatically and press a button on that form
I've been trying to use JasperReports to print in a resolution above 72dpi, with
I am trying to use PHP and MySQL to automatically generate a list like
I am trying to write a program that monitors an IMAP mailbox and automatically
hi there i am trying to write a code that generates automatically code and
Here's the deal. I'm trying to make a chat-like application that works with MySQL.
I'm thinking of trying to create a drop box application that can automatically organize
I'm trying to automatically compress both CSS and JS using maven and this plugin

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.