Jump to content

Harry Rogers

uniGUI Subscriber
  • Posts

    237
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Harry Rogers

  1. It's not a unigui limitation it is a deliberate policy that Browsers should not be able to initiate printing silently. If you know the printer you want to direct output to in advance (i.e predefined a method to get to it) then you can do it silently from the user's point of view, either from the Client's or the Server's perspective but you can't just roll up with any old browser and print to the client's default printer without a dialog.
  2. Hi It sounds as if your situation is a retail type scenario ? In this case if the client is at a known location it is likely the printer(s) required are always the same ones for a given client location. If this is the case it's possible to use a couple of solutions - for the first the printer will need to be accessible from the server by some means though - which may not be such a limitation in this scenario. e.g. Client at 'Terminal 1, Shop1' i.e. a know location - Install the printer as being accessible from the server and then use lpr to send the job directly to it. winexec / ShellExecute the minimal payload is simply "lpr -Stheservername -Ptheportname thefilename" or use a small piece of client software on the client running in the tray that handles printing to predefined printers. e.g for windows clients a simple Webbroker wizard type app running in the tray can receive a request from the UniGui server to perform a number of actions on the client (such as show a pdf or depending on the locally installed PDF viewer print it without additional dialogs). For example SumatraPDF (which is free) has various direct printing options [ https://github.com/sumatrapdfreader/sumatrapdf/wiki/Command-line-arguments] as do some others. Whilst the end result is pretty transparent to the user it does entail a bit of additional set up initially. All the best
  3. I think I've found it - I had created a ram drive which caused it a bit of a problem when running as a service - switching back to a real drive all seems well. Many thanks
  4. Ok thanks for that - I can now successfully build the service. I can't get it to work as yet (AV in browser window at creation of session - May well not be a UniGui issue though / not sure the service can see the resource it's monitoring. I might just run it as a standalone (which works perfectly) in a user session on the server as I'm pressed for time. Thanks All the best
  5. Hi Two questions 1. How to convert a standalone to a service app ? 2. How to set the service name - I don't understand the section of the deployment guide i'm afraid. Many thanks
  6. OK great - got that. I was coming to the same conclusion (slowly!) Many Thanks All the best
  7. Harry Rogers

    JS Syntax

    HI What's the syntax for calling a Delphi function or procedure from JS ? When some condition is met in the Javascript I want to call a delphi procedure, from the Clientevents demos it's easy to see setting text and moving elements around the form but I can't see calling a delphi procedure. Here is a simple delphi procedure procedure TMainForm.btnMaskClick(Sender: TObject); begin bMasked := true; frmmask.ShowModal(); end; ........ and some JS in the script property of the form ...... ...... if (_MaxTry >= MAX_COUNT) { MainForm.lblWarning.setText('You have used all attempts'); << works fine MainForm.lblStatus.setPosition(x,y); << works fine MainForm.btnMaskClick(self); <<<< this is the one I don't know the syntax of } Many thanks Harry
  8. Thats working fine now, as per your example with 1295. Reported - fixed - built - Uploaded - Downloaded - built - tested < Two and Half Hours>. That's a pretty amazing service. Thank you
  9. I've tried just about every combination I can think of up and down the object hierarchy but can't find a solution. I think I will pre-load the PNGs into a directory and simply use a loadfromfile in each case. would it be possible to add a property/method to the UniNativeImageList that returned a Tpicture or have a UnImage descendant that had imagelist & image index properties ? Many thanks Harry
  10. Thanks Farshad I tried uninativeimagelist1.GetPng(0,tpngimage(uniimage0.Picture)); this gives the error 'Privileged instruction'. All the best Harry
  11. Hi I can't figure out how to use a UniNativeImageList as the picture source for a UniImage. I've tried all the obvious ( to me at least ) assignments without luck even resorting to this horror ! >> uniimage2.LoadFromStream(Tstream(uninativeimagelist1.Images[0].MemoryImage)); I'm sure it must be simple to do. Anyone care to enlighten me ? Many thanks
  12. Another nice bit of info would be to display the ip & port in the hint of local server instance in the tray/toolbar. Thanks
  13. Many thanks - Super fast response!
  14. Hi Could you send me my password (or generate a new one) for the download portal please. Many thanks Registered email is harry@aspxx.co.uk All the best
  15. Many Thanks Delphi Developer. I guess this will be added as a property of TUniGridColumn at some point ? All the best
  16. Hi Could not find any reference to this having been asked. How to set alignment for given columns in a UniStringGrid ? Many thanks
  17. Restart sorted it. Thanks and I hope you have a good break for a few days before lots of new stuff for 2016 ! All the best
  18. Thanks for the rapid response I'll try a restart
  19. Sorry if this has been covered already - How do I delete the 2 demos folders and their contents from \program files (x86)\fmsoft\unigui\demos\.. ? an admin cmd fails with >rd /S/Q Can't get PowerShell to believe '(x86)' is part of a valid path. So I'm stuck with the Unigui failing on the install of the latest demos - if I ignore these errors is there a way to put the demos in a location I can control ? Many thanks
  20. This sounds interesting. Look forward to seeing how you get on. Thank you
  21. Hi There are a number of 3rd party options. I have no affiliation with http://www.scalabium.com/sme/ but for 50 euros including source you could do a lot worse. It gives you Excel in various formats, PDF , XML, Json and others. I use it with the Advantage Database (now owned by SAP) Tdataset descendants for which it is ideally matched. All the best
  22. Hi Anyone know a cunning plan to display the digits within a Unispinedit to a fixed width, left padded with zeros? e.g pad to length 4 so 1 appears as 0001 and 15 as 0015 pad to length 2 so 1 appears as 01 and 15 as 15 Many thanks
  23. Hi Hayri / Farshad This component pack is growing nicely I think a 'sticky' posting would be useful for this forum as the first post - To give a list of current components included and the cost along with a link to purchase url. (Has XE8 installation been confirmed yet) All the best
  24. Ferna - that's pretty much perfect ! Thank you very much All the best
×
×
  • Create New...