Jump to content

HowTo : Send (Fast)report directly to local printer


Recommended Posts

Posted

hi

 

All my reports are stored in a database. I load a report when i need one

and genereate report and direct print the report (frxReport.Print).

This works when my program is a stand-alone server and use it on a local machine.

 

Now i created a .dll and running it on my IIS server. The same option does not work

anymore (oke..no printer installed on server).

 

What do i need or how to support direct send report to the users local printer ?

 

For the frxReport properties like ShowDialog, ShowProgress are disabled.

 

Regards Peter

Posted

Hi

 

Thanks for the answer....i know this solution and already use it in

my application. But we have a pratical issue for the users.

 

For a music festival they get about 2500 accreditations request in 3 weeks

and they need to print a single request. When first generating a pdf ...then view

and then print...it cost to much time. That's why i need to directly print

the request.

Posted

When you configure ISS you created a user named IUSR. This user has no permission to access printer. You can give permission to access printer.

Posted
There are 2 solutions :
1.Client side 
For print on LOCAL printer user show his report as a pdf, then you can print it.
2.Server side 
For print on SERVER printer you need :
- save report on server
- call external app for print on server printer with argument - this file path
 You can share local printer and use it on server side
 
P.S..
I have my own app for print fr3 file on need printer
Posted

Yep..I need to access the printer on the browser side at the customer location.

 

you can not  access the printer on the client side.  it's a general browsers security, client browsers don't allow that web page have access to local hardware like printers, disks, etc.

U must have clear that unigui app is running on the SERVER side, and this app never can access to the 'client printer side', only can access to the SERVER printer becouse is running on the same machine.

 

Your unigui app must export your report in pdf format, and load it in a unihtmlframe. (there are a several examples in the forum).

The client browser show the pdf report, and user must click on print button, that's the only way..

 

If you have several pdf's that same client/user must be print, fist compose a big pdf with all the pages to print (or generate a composed report and export to pdf), then load only one pdf instead several's.

  • Upvote 2
Posted

1. Share your local (client) printer

2. Define the local printer as a printer of the server

3. Select from FastReports the respective printer before you do frxReport.Print

4. Print the report directly to the client.

 

N.B.

It's only a LAN solution. If you need a general solution things become more complicated.

Posted

Hi

 

Thanks for all the tips/suggestions ...i'm going to try some things
to see if i got it working

 

Regards Peter

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...