Printing
Printing lets people print from inside a published application or desktop, with nothing installed on the host and no printer drivers to manage. The document comes back to their browser and opens its own print dialog, so they print to whatever they normally print to. For people who print all day, the optional DartRelay Print Helper sends it straight to the printer with no dialog at all.
How printing works
A published application runs on a host, so its Print command can only see printers that the host knows about. Sharing every user's own printer with the host means drivers, queues and support calls. DartRelay takes a simpler route:
- When printing is on for a resource, a single virtual printer appears inside the person's session. Its name is one you choose.
- The person prints to that printer from the application as usual.
- DartRelay turns the job into a PDF and sends it to the person's browser over the same connection as the session.
- The browser's own print dialog opens straight away New in 2.3, so the person picks any printer their computer can reach and prints. If the browser cannot show the document that way, the job falls back to a panel in the session with Open and Save buttons.
- Where the person has installed and paired the Print Helper, the document goes straight to their chosen printer instead, with no dialog.
Nothing is installed on the host, no physical printer is shared with it, and print output is not written to the host's disk.
Printing is off for every resource until you switch it on, and resources that existed before you upgraded stay off. Turning it on for one resource does not affect any other.
When the panel appears instead
The print dialog is opened from a hidden frame inside the page, which works where the browser can display a PDF itself. Where it cannot, or where nothing has loaded after a few seconds, the job falls back to the print panel with Open and Save buttons. Several jobs queue in the panel one under another rather than replacing each other. Downloaded files are named DartRelay-print- followed by the date and time.
The connection is held while the browser's print dialog is open, which is what fixed sessions reconnecting in the middle of printing a run of receipts.
Switch printing on for a resource
Printing is set per desktop and per app group, on the same edit page as file transfer.
- Open the resource. In the console, go to Catalog → Desktops or Catalog → Remote Apps and open the desktop or app group for editing.
- Find the Printing card. It sits beside the File Transfer card.
- Switch printing on.
- Optionally set the printer name. This is the name people will pick in the application's print dialog. Leave it blank to use
DartRelay Printer. - Click Save. The printer appears in the next session opened for this resource. Sessions already open are not changed; the person needs to close the resource and open it again.
Printing card reference
| Field | What it does | Default |
|---|---|---|
| Enable Virtual Printer | Adds the virtual printer to sessions of this resource. It prints through the Print Helper where the person's browser is paired with one that is running, and through the browser's print dialog otherwise. | Off |
| Printer name | The name of the printer inside the session. Only letters, digits, spaces, hyphens and underscores are kept; any other character is removed when the session starts. If nothing usable is left, the name falls back to the default. | DartRelay Printer |
Example: an application that prints to a named printer
Some older line-of-business applications print to a printer by name, and fail if that exact printer is missing. Suppose an accounts package always prints to a printer called Accounts Printer.
- Open the app group that publishes the package and switch printing on.
- Set the printer name to
Accounts Printerand save.
The application now finds the printer it expects, and every report comes back to the person's browser. Remember the character rule: a name such as Accounts (Main)! would become Accounts Main, so choose a name made of letters, digits, spaces, hyphens and underscores if the application must match it exactly.
DartRelay Print Helper New in 2.3
The browser's print dialog works for everybody and needs nothing installed. But one click per document is one click too many for somebody printing receipts, labels or batches all day. The DartRelay Print Helper is an optional download for Windows that removes it: once installed and paired with the portal, documents go straight to the printer.
- Optional, and per person. It is a per-user install. Nothing changes for anybody who does not have it.
- IT can push it. It installs silently with
--install --quiet --server <address>, and a policy key lets you fix the servers it uses so people cannot remove them. - One copy serves every browser on that computer, and it can be paired with several DartRelay installations at once — a second portal, a test installation.
- Offline printers are offered as well: a job sent to one waits in its own Windows queue.
- People set it up themselves from the Print Helper page in the portal, reached from the profile menu, which explains what it is and who needs it.
Programs that print to the session's printer by the name “(Default)” — which several Java point-of-sale packages do — now find it. Hosts get a small task, installed when a host is added, saved or prepared, that copies the session's default printer to where Java looks for it.
What people see
For the people using the portal, printing looks like this:
- The printer you named appears in the application's print dialog. On a full desktop it also appears in the Windows printer list.
- After they print, their browser's print dialog opens with the document ready, and they choose a printer as they would for anything else.
- If the dialog cannot be shown, a panel appears in the session instead, with Open and Save.
- With the Print Helper installed and paired, nothing appears at all: the document goes to the printer.
The end-user guide Files and printing in a session walks through this in plain language and is written to be sent to staff.
The print panel appears inside the session that printed. If someone prints from one tab and then switches to another before the job finishes, the panel waits in the first tab. Tell people to switch back to the tab they printed from if a job seems not to arrive.
Printing and file transfer together
Printing and file transfer are independent switches. You can turn on either, both or neither for each resource:
- Printing only suits people who need paper copies or PDFs of reports but should not move files in and out.
- File transfer only suits people who exchange documents but never print.
- Both is common for office applications.
Printing needs no share, folder or account; it only needs the switch. See File transfer for the drive and file browser.
If something goes wrong
| What you see | Likely cause and fix |
|---|---|
| The printer does not appear in the session | Printing is not switched on for that resource, or the session was opened before you saved. Check the Printing card, then close the resource in the portal and open it again. |
| The printer has a different name from the one typed | Characters other than letters, digits, spaces, hyphens and underscores were removed. Choose a name made only of those characters. |
| The job was sent but no panel appeared | The panel is in another tab: the one the job was printed from. Switch back to it. If it still does not appear, check the DartRelay log for that session. |
| Open does nothing | The browser blocked the new tab. Ask the person to allow pop-ups for the portal's address, or to use Save instead. |
| People ask to print straight to their office printer | DartRelay does not share local printers with the host. Each job comes back as a PDF which they print from their own computer. |
Related pages
File transfer
A drive in the session and a file browser in the portal.
Files and printing in a session
The end-user guide you can send to staff.
Publishing applications
Create the app groups that printing is switched on for.
Host session options
Other settings that shape what a session can do.
