mierlp Posted April 12, 2016 Share Posted April 12, 2016 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 Quote Link to comment Share on other sites More sharing options...
bugra Posted April 13, 2016 Share Posted April 13, 2016 Hi You can show your report as a pdf, then you can print it. Examine fastreport demos in Demos/Desktop/ folder. Quote Link to comment Share on other sites More sharing options...
mierlp Posted April 13, 2016 Author Share Posted April 13, 2016 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. Quote Link to comment Share on other sites More sharing options...
bugra Posted April 13, 2016 Share Posted April 13, 2016 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. Quote Link to comment Share on other sites More sharing options...
rencarnacion Posted April 13, 2016 Share Posted April 13, 2016 But You can only access the printer that IIS has access , I Think that he is talking about the printer that is at the side of browse Quote Link to comment Share on other sites More sharing options...
mierlp Posted April 13, 2016 Author Share Posted April 13, 2016 Yep..I need to access the printer on the browser side at the customer location. Quote Link to comment Share on other sites More sharing options...
radiocab Posted April 13, 2016 Share Posted April 13, 2016 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 Quote Link to comment Share on other sites More sharing options...
rencarnacion Posted April 13, 2016 Share Posted April 13, 2016 These feature will make that you can use the printer that de Browser is Connected http://thehackernews.com/2016/04/webusb-api.html?m=1 Quote Link to comment Share on other sites More sharing options...
docjones Posted April 13, 2016 Share Posted April 13, 2016 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. 2 Quote Link to comment Share on other sites More sharing options...
billyChou Posted April 16, 2016 Share Posted April 16, 2016 1.test flash api -> flash.printing 2.flash is like active x , develop call local runtime process. need hard work. Regards Quote Link to comment Share on other sites More sharing options...
adragan Posted April 16, 2016 Share Posted April 16, 2016 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. Quote Link to comment Share on other sites More sharing options...
mierlp Posted April 17, 2016 Author Share Posted April 17, 2016 Hi Thanks for all the tips/suggestions ...i'm going to try some thingsto see if i got it working Regards Peter Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.