LEADTOOLS Support
Imaging
Imaging SDK Examples
HOW TO: Use LEADTOOLS in .NET Core Service to Send Documents and Images to Server-Side Printers
#1
Posted
:
Friday, September 3, 2021 6:01:54 AM(UTC)
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 Printer2. Use printer named “Test1 Laser Printer”.
http://localhost:5105/Print/PrintFile?uri=https://demo.leadtools.com/images/tiff/barcode1.tif&printer=Test1%20Laser%20Printer3. Use default system printer
http://localhost:5105/Print/PrintFile?uri=https://demo.leadtools.com/images/tiff/barcode1.tifTo build the service project, extract the source code to the following folder:
C:\LEADTOOLS21\Examples\DotNetCore\ASP.NET\AspNetControllerPrint
Amin Dodin
Senior Support Engineer
LEAD Technologies, Inc.
LEADTOOLS Support
Imaging
Imaging SDK Examples
HOW TO: Use LEADTOOLS in .NET Core Service to Send Documents and Images to Server-Side Printers
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.