"InfoPath cannot open the selected form because of an error in the form's code. Policy settings prevent opening Internet forms with managed code. To fix this problem, contact your system administrator. "
When i tried to Click Priview button on the InfoPath2010 , i'm getting this above mentioned error. After that i changed the security setting of the form to fully trusted, then it worked for me.
Go to Form Options =>Security and Trust => Select Fully Trust radio button =>and then click ok button.
I have an Infopath form which is published to a document library in a sharepoint site. I am using Infopath 2010 .When I try to publish the form, and when I check the box "Enable the form to be filled out by using a browser", I only have the option to publish the form as Administrator approved form template, the other options of publishing it in a document library or publishing it as a content type are grayed out.
The error message is
Troubleshooting Steps: Go to SharePoint 1. Central Administration Settings
-> Central administration -> General Application settings -> Click Configure InfoPath Forms Service (Check the following Check-boxes) a. “Allow users to browser-enable form templates” b.“Render form templates that are browser-enabled by users”
2.SharePoint Site Settings
-> Open your SharePoint site -> click on Site Actions -> Site Settings -> Select Site collection features under Site Collection Administration -Activate SharePoint Server Enterprise Site Collection features.
The picture library webpart uses the css classes in corev4.css in sharepoint 2010. The web part uses “.ms-WPBody” css class for styling. I over wrote this class in my custom style sheet as “.ms-WPBody. So, I wrote my custom css using this class name as follows: .ms-WPBody.noindex{ font-size:8pt; font-family:"Segoe UI" !important; } .ms-WPBody.noindex table{ font-size:1em; width:100% !important; height:100% !important; } .ms-WPBody.noindex td{ font-size:10pt; font-family:"Segoe UI" !important; width:100% !important; height:200px !important; margin-left:auto !important;margin-right:auto !important; /* text-align:center !important;*/ } .ms-WPBody.noindex td div{ height:auto !important; width:100% !important; text-align:center !important; display:block !important;; } .ms-WPBody.noindex td div span{ width:100% !important; } .ms-WPBody.noindex td img{ height:100% !important; width:100% !important; } source code like that.. <table> <tr> <td> <div> <WebPartPages:PictureLibrarySlideshowWebPart> </WebPartPages:PictureLibrarySlideshowWebPart> </div> </td> </tr> </table>
1. Under the Document uploaded part pls select the Edit Web Part,
2. in webpart, under Library Tool select Library then select Library settings.
3.then select Versioning settingsunder the General Settings there u get a page for select the type of versioning(major or minor), then u get press OK button on there..
Create a folder in your C drive called backup. Then give the path as C:\backup
This will save the backup file in c:\backup folder You dont have to mention the \\ before C: \\ is used if you are trying to save the backup in a shared location. Ex: \\sysname\foldername