Showing results 1 to 9 of 9

Thread: WPF events don't work on webclient

  1. #1

    Default WPF events don't work on webclient

    Hello all

    We create wpf menu control that use instead of the project main menu on webclients. We assign to events of wpf menu item function type screen switch (for example). Unfortunately this function don't execute on webclient.
    Where can be a problem? We try demo version of WEB Server. May be it's a problem for demo version only.

    We use Windows 7, IE8 and Firefox and Zenon v7.11 build 7770 32bit and demo version WEB Server.

    XAML file of our wpf control you can find in attachmets.

    Thanks for your help
    Attached Thumbnails Attached Thumbnails wpf_menu_events.jpg  
    Attached Files Attached Files

  2. #2

    Default Re: WPF events don't work on webclient

    I created a test project. You can find this project in attechments.
    For my wpf control I am using Microsoft Expression Blend UserConrtrol - mainMenuControl. I tryed to add PresentationFramework.Aero.dll to the folder with Internet Explorer but it didn't help.
    Attached Files Attached Files

  3. #3

    Default Re: WPF events don't work on webclient

    Hi altera,

    Is this something specific to a web client, or does this also occur on a normal runtime client?

    Best regards,
    Mark

  4. #4

    Default Re: WPF events don't work on webclient

    Hello Mark

    On standart runtime (server and client) this wpf menu works fine. But on standart webclient functions which were assigned to menu items didn't work.
    I don't have a license for webserver and could test project only in demo mode.
    May you try this wpf menu on standart web client with web server or web server pro license?

    Best regards

  5. #5

    Default Re: WPF events don't work on webclient

    Hi Altera,

    Unless you are trying to write variables, it should not matter if you use a demo license for the webserver for your tests.

    Is VSTA / VBA enabled on the webclient?

    Is the custom Dll for your .wpf available on the webclient PC, and is it loaded by internet explorer?

    On the webclient, the normal zenon main menu is not available due to Windows restrictions where there can only be one main menu per application. As the webclient runs in the browser which already has a main menu, the zenon main menu cannot be used.

    Best regards,
    Mark

  6. #6
    Join Date
    30.05.2007
    Location
    Salzburg
    Posts
    881

    Default Re: WPF events don't work on webclient

    . I tryed to add PresentationFramework.Aero.dll to the folder with Internet Explorer but it didn't help.
    -> does the wpf control work if you copy this dll to the webclient installation folder?

    regards,
    herbert


  7. #7

    Default Re: WPF events don't work on webclient

    Hello

    VSTA / VBA are enabled.

    -> does the wpf control work if you copy this dll to the webclient installation folder?
    I tryed it and also I set property "IsMainMenu=false" for this wpf menu control but a result was the same (don't work).
    I took this wpf menu control from Expression Blend.

    Best regards

  8. #8

    Default Re: WPF events don't work on webclient

    Hi Altera,

    You can use "process explorer" from "Sysinternals" (Microsoft TechNet) to view the handles and dlls used by the internet explorer process, by pressing Ctrl+D.

    If there is more than one iexplore.exe process, locate the one that loads the "npzenwebcli.dll".

    Check this process to see if all required .dll files for the WPF element are also loaded.

    Best regards,
    Mark

  9. #9

    Default Re: WPF events don't work on webclient

    Hello Mark

    You advise is very interesting. I found that dll for my WPF control use framework v4.0 but webserver support only v2.0.
    Can zenon webserver support framework v4.0?
    I will try to create the same wpf control using MS Studio 2008.

    Thank you.
    Best regards
    Dmitry

Similar Threads

  1. Replies: 5
    Last Post: 18th September 2013, 13:26
  2. Is there some way to select authorization level when attach wpf events to zenon functions
    By stolyarov_as in forum Engineering Studio & Service Engine (former zenon Editor & Runtime)
    Replies: 1
    Last Post: 18th March 2013, 00:09
  3. Segregation of System events and Process events
    By ansab.tp in forum Engineering Studio & Service Engine (former zenon Editor & Runtime)
    Replies: 1
    Last Post: 25th February 2012, 00:54
  4. Replies: 5
    Last Post: 3rd August 2011, 17:24
  5. Settings for the aml don't take any effect
    By matthias.zoellner in forum Engineering Studio & Service Engine (former zenon Editor & Runtime)
    Replies: 2
    Last Post: 14th August 2008, 12:22

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •