Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / November 2004

Tip: Looking for answers? Try searching our database.

html taskpane permissions with fully trusted forms

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bolek Wisniewski - 21 Sep 2004 23:05 GMT
Hello all,

Really, the only thing I want to do is get rid of that annoying 'you are
about to run an activeX script' message. I accomplished this by registering
my form and setting the fully trusted security level under -form options-.
The problem I am having now is that after distributing the .xsn file along
with the register script...The html taskpane script does not have permissions
to run any of my form script functions. That is, it works on the computer
that has had the original document...there are no permission errors. As soon
as I send it to someone else on the network and run the register script on
that machine...then try running the .xsn file...there is a permission denied
error. I have tried setting the security levels for IE in the intranet,
internet, and trusted catagories, but so far to no avail. Will this problem
go away if I use certificates instead of fully trusted forms...am I doing
something wrong? Any help will be appreciated. - bolek
Manuel González - 22 Oct 2004 16:59 GMT
I meet the same problem. If you resolve that, please send me asap.
My code faults at send method of xmlhttp object.

thank´s

> Hello all,
>
[quoted text clipped - 11 lines]
> go away if I use certificates instead of fully trusted forms...am I doing
> something wrong? Any help will be appreciated. - bolek
Bolek Wisniewski - 25 Oct 2004 18:41 GMT
I have a feeling that we are going to have to set fully trusted form AND get
trusted certificates - I stopped worrying about it until the time comes...if
you find more info let me know too - thanks bolek

> I meet the same problem. If you resolve that, please send me asap.
> My code faults at send method of xmlhttp object.
[quoted text clipped - 16 lines]
> > go away if I use certificates instead of fully trusted forms...am I doing
> > something wrong? Any help will be appreciated. - bolek
Josh Bertsch [MSFT] - 26 Oct 2004 17:49 GMT
What calls are you making to and from your task pane?  Are you using
MSHTML.dll?  If so, it will have to be registered on every users machine.
If this is the case, I can take you through the steps necessary to fix the
problem.

--josh bertsch

>I have a feeling that we are going to have to set fully trusted form AND
>get
[quoted text clipped - 35 lines]
>> > doing
>> > something wrong? Any help will be appreciated. - bolek
Bolek Wisniewski - 28 Oct 2004 19:32 GMT
Hi josh,

sorry for the delay...i wasnt checking posts for a while. Hope your still
around.

I think I was mistaken on my previous post...the taskpane doesnt work with
installed Fully Trust Form either. I am in the process of registering the dll
now...

The calls I make seem standard to me:

  gobjXDocument = window.external.Window.XDocument;
  // Set the initial state of the task pane contents.
  gobjXDocument.Extension.SetTaskPaneState();

where SetTaskPaneState() is a function in the InfoPath script:

function SetTaskPaneState()
{
    // Ensure View has loaded before trying to access the task pane
    if (XDocument.View)
    {
        if (gobjTaskPane == null)
            gobjTaskPane = XDocument.View.Window.TaskPanes.Item(0);

        // Ensure that the task pane is completely loaded
        if (gobjTaskPane.HTMLDocument.readyState == "complete")
        {
            var strTaskPaneViewId = "TP_" + XDocument.View.Name.replace(/\W+/g, "");
            if (InitGetAuthorData()){
                TemplatesArray () ;
            }
           
           
        }
    }
}

from InfoPath script I call the taskpane like so
     gobjTaskPane.HTMLDocument.parentWindow.SelectDrop(TemplatesTypes,
Topics,Authors, TemplatesTypesIds, TopicsIds, AuthorsIds, Industries,
IndustriesIds, IndustryCompanyIds);

As I said before all this works fine if form is not Fully Trust...but gives
permission denied when on the line where I call  
gobjXDocument.Extension.SetTaskPaneState(); from taskpane html when the form
is Fully Trusted...I have given all sorts of ridiculous permissions in the
intranet and internet internet explorer security options. (btw...does
infopath use these permisions?) thanx for any and all help - bolek

> What calls are you making to and from your task pane?  Are you using
> MSHTML.dll?  If so, it will have to be registered on every users machine.
[quoted text clipped - 40 lines]
> >> > doing
> >> > something wrong? Any help will be appreciated. - bolek
KWenstrup - 10 Nov 2004 02:22 GMT
Josh:

Could you please send me these steps?  My form is running fine on mine or
other developer's machines with VS.NET, but our users are getting an error
that Microsoft.mshtml or one of its dependencies is not registered.

Thanks:
-  Ken

> What calls are you making to and from your task pane?  Are you using
> MSHTML.dll?  If so, it will have to be registered on every users machine.
[quoted text clipped - 40 lines]
> >> > doing
> >> > something wrong? Any help will be appreciated. - bolek
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.