Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Friday, September 3, 2021 6:01:54 AM(UTC)

Amin  
Amin

Groups: Manager, Tech Support
Posts: 367

Was thanked: 1 time(s) in 1 post(s)

The attached VS2019 .NET Core project contains a service that takes 2 parameters:
uri: The source URI of the file to be printed. http, ftp and file protocols are supported.
printer: Optional. The name of the printer to use. If not supplied, the default printer on the server is used.

The file specified in “uri” can be any supported format, such as PDF, JPEG, PNG and hundreds more.

The service uses LEADTOOLS to print all pages of the file to the server-side printer whose name is specified in the “printer” parameter. If this parameter is omitted, the default system printer is used.

For example, if the service is hosted at the localhost, sample usage URLs are the following:

1. Use printer named “Test1 Laser Printer”.
http://localhost:5105/Print/PrintFile?uri=https://demo.leadtools.com/images/tiff/barcode1.tif&printer=Test1 Laser Printer

2. Use printer named “Test1 Laser Printer”.
http://localhost:5105/Print/PrintFile?uri=https://demo.leadtools.com/images/tiff/barcode1.tif&printer=Test1%20Laser%20Printer

3. Use default system printer
http://localhost:5105/Print/PrintFile?uri=https://demo.leadtools.com/images/tiff/barcode1.tif

To build the service project, extract the source code to the following folder:
C:\LEADTOOLS21\Examples\DotNetCore\ASP.NET\AspNetControllerPrint
File Attachment(s):
AspNetControllerPrint.zip (6kb) downloaded 20 time(s).
Amin Dodin

Senior Support Engineer
LEAD Technologies, Inc.
LEAD Logo
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.033 seconds.