<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: IRM Settings in Web-based forms (impossible, but not?)</title><link>https://www.infopathdev.com:443/forums/thread/118727.aspx</link><pubDate>Mon, 09 Apr 2018 16:16:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118727</guid><dc:creator>jh1234</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118727.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=118727</wfw:commentRss><description>Point well taken; just some users have infopath installed and others don&amp;#39;t, so the web-based was intended to cover all cases/versioning.</description></item><item><title>Re: IRM Settings in Web-based forms (impossible, but not?)</title><link>https://www.infopathdev.com:443/forums/thread/118725.aspx</link><pubDate>Mon, 09 Apr 2018 16:04:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118725</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118725.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=118725</wfw:commentRss><description>So - a web based form can never be offline. I don&amp;#39;t understand why you would not just change your form&amp;#39;s compatibility to filler, since you seem to intend to use filler forms?</description></item><item><title>IRM Settings in Web-based forms (impossible, but not?)</title><link>https://www.infopathdev.com:443/forums/thread/118721.aspx</link><pubDate>Mon, 09 Apr 2018 15:22:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118721</guid><dc:creator>jh1234</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118721.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=118721</wfw:commentRss><description>Hi,

Problem:  I need to make a form such that it becomes read-only once it&amp;#39;s offline.
i.e. everyone can open in Infopath and print, but not change or save locally.  Only a select group would be able to open/edit save.

So it clearly states on ( https://msdn.microsoft.com/en-us/library/office/aa944110.aspx ) that Browser-compatible form templates do not support IRM.

But, I&amp;#39;m tantalized by the code template, which says:

// Member variables are not supported in browser-enabled forms.
        // Instead, write and read these values from the FormState
        // dictionary using code such as the following:
        //
        // private object _memberVariable
        // {
        //     get
        //     {
        //         return FormState[&amp;quot;_memberVariable&amp;quot;];
        //     }
        //     set
        //     {
        //         FormState[&amp;quot;_memberVariable&amp;quot;] = value;
        //     }
        // }

Does this mean I can technically do IRM with the UserPermissionCollection Class?  I&amp;#39;d need a code example on how to do this from the FormState, if it&amp;#39;s possible.

something like the example at the bottom of that website that I&amp;#39;ve mashed in here with obviously incorrect syntax:

set{
FormState[&amp;quot;_Permission.UserPermissions.Add(&amp;quot;someone@example.com&amp;quot;, _
      PermissionType.Change, dtExpirationDate)&amp;quot;];
}

Using Infopath 2013 designer ; the code editor opens in Visual Studio 2012, (Microsoft Visual C# 2012)

Thank you.</description></item></channel></rss>