Jump to content

Harry Rogers

uniGUI Subscriber
  • Posts

    237
  • Joined

  • Last visited

  • Days Won

    6

Posts 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. 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
  7. 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

  8. 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

  9. 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

     

  10. 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

  11. 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

  12. 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

    • Upvote 1
×
×
  • Create New...