Infopaht forms display in browser and for printing them - infopath

I have two questions that in sharepoint 2007 with infopath 2007,
1)"infopath form library forms(.xml) are not opening in browser" though i have made the option to "open in browser".
2)Another question is how to "retrieve the forms stored in the infopath libraries to show in aspx pages and to print" it directly.
Please reply me if any one knows the answer.

1) Within the form options, make sure that the compatibility is set to Web Browser Form. If you are publishing the form to a document library within SharePoint be sure to check that the form is going to be opened in the browser. Last, make sure that under the advanced options in your document library settings that the browser is set to "Display as a Web page".
If your form has full trust permission you will need administrator approval to complete the publish. This requires that the form is saved in a location that can be accessed by STSADM.
2) If the above steps work you will be able to view and print your form from within the browser.
Good Luck!

Related

Code-blocks are not allowed in this file - Where is My web.confi file

I have a sharepoint at my office. Its 2013 version. Where I want to write some asp code. But the issue is SharePoint is blocking the code and I am getting error "Code blocks are not allowed in this file". I searched google and found several links to solve the issue by saying make some changes to the webconfig file.
Now my question is how do I find the file. Where it is actually.
What I have is a sharepoint, I don't have any designer. I only have admin access for this site. Can some one please guide me.
I know there are several entries here in stackoverflow, but no one is talking about where to find the file.
Please help me.
My apologies if this happens to be a repetition, in that case please point me to the right post. Thank you guys.
By default injecting server-side code (ASP.NET) in SharePoint pages directly from sites is not allowed for performance reasons, and should remain as is.
If you never approched SP developpment and are not an administrator of the farm in your company I strongly advise you to see first if you can solve your needs with client side development (javascript) instead of going to server side (ASP.NET).
SPS2013 comes with the "Script Editor WebPart" that you can use to inject your custom JS on pages. If you need your custom on all pages consider adding your JS on the site's masterpage.
From JS you can use SharePoint REST API to interact with your site https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/get-to-know-the-sharepoint-rest-service
If you need heavy customisation for your site you can move to the addin model (client side) that will require Visual Studio IDE develoment suite.
And last option is if you explicitly require serve side code and/or need to develop a scalable enterprise grade solution, you will need to make a "SharePoint full trust solution package".
PS: You may see articles around about "SharePoint Framework" (aka SPFx), unfortunatly this is not available for SPS2013.

When programming with Razor code extension .cshtml is shown

I am new to web pages.
I made a ASP.Net website(Razor) but here WebSecurity uses cookies and I didn't wanted to use inbuilt features..
Hence I made a new ASP.NET Empty WebSite and then added a Layout page & a content page..
Now when I browse it with in the browser it shows extension .cshtml... This is not the case when I made a ASP.NET website(Razor), they show no extension.
My Question:
Is there a way I can hide .cshtml extension or show .html instead.?
Can I edit WebSecurity default methods like it saves userId in cookies I want to save it in Session..?
Make sure any internal links in your application do not include the file extension. Then the extension will not appear in the browser address bar. If you right-click on an individual file in the File Explorer within WebMatrix and choose "Launch in browser", the extension will be shown, but that shouldn't matter.
If you want to know more about the standard routing behaviour in the Web Pages framework, I wrote an article about it here: http://www.mikesdotnetting.com/Article/165/WebMatrix-URLs-UrlData-and-Routing-for-SEO

Need InfoPath 2010 to automatically upgrade to new template

I have a form that was created in InfoPath 2010, as an InfoPath 2003 compatible form. It has managed code behind it (C#, InfoPath 2003 object model) and it is published directly to a SharePoint 2007 form library. The form is opened from another application using XDocuments2.NewFromSolution.
I want users to automatically get the latest version of the form template, and that is what I have selected in the versioning option. However, those who are using InfoPath 2010 get a message when they open a new form after the template has been updated saying “Update Your Form” along with a button to “Save and Update Form.”
Here is what I have tried while trying to eliminate this:
Publishing as a site content type.
Publishing to a network location instead of to SharePoint.
Publishing to a network location and changing the form name (from this post http://www.infopathdev.com/forums/p/19260/66833.aspx)
Updating the version number to something totally new (like 2.0.0.1).
None of these work. This is a heavily used form and I don’t want anyone to get this Update message, especially because it makes the form not work correctly so it has to be closed and reopened. I need to figure this out before everyone is upgraded to Office 2010. It works fine in earlier versions of Office.
Does anyone have some other ideas I could try?
Thanks,
Beth
I finally contacted Microsoft support and this is what I was told:
Unfortunately there is no way to avoid the InfoPath 2010 users getting that prompt to “Save and Update Form”. Even with code it is not possible.
The users will only get the prompt the initial time to Save and Update Form as you already know, and then any subsequent openings will not prompt the users for any updates. The only way around this option is to have the InfoPath 2010 users clear their InfoPath cache first, before accessing the forms. This will delete the currently saved template information that is in their cache, so it will not prompt them to save and update the form since it doesn’t have any record of there being an open form.
The way to have users empty their InfoPath cache is by doing this:
Have them go to Start then either launch “Run” or in their “Start Search” bar (right above the Start button) have them type the following command:
InfoPath /cache clearall
(this will launch the InfoPath client on the user’s machine and they will now have empty InfoPath cache)
So I am going to make my form browser-enabled in order to avoid the Save and Update Form button.
Beth

For webdav the choices are activex or shared web folders, right?

In our environment we have IE clients looking over a web page with a document list. When the user clicks on a document we can start MS Word from the activex control Sharepoint Team Services Client (OWSSUPP.DLL) or expose the document list via a Shared Folder that Word can access.
Are there other choices?
One option, which would probably be frowned upon by sys admins, is to create a vbs script file on the fly that the user can choose to download and execute. The contents would be something like
CreateObject("SharePoint.OpenDocuments.2").EditDocument("http://...url here")
Alternatively you could display the url and instruct the user to copy and paste it into the appropriate program (MS Word etc). Adding a button to automatically copy it to the clipboard using something like ZeroClipboard might make it less of a chore for the user.
Otherwise unfortunately I think those are your options. Sorry!
Yes, Microsoft Office now installs plugins for all 4 major browsers. So you can open for editing MS Office documents in Chrome, Firefox, Safari and IE.

Flex application bookmarking problem/"#" at end of url

I work in an area where the business users heavily depend on bookmarks to access their work-related web applications. Our standard browser is Internet Explorer v6. We have a new Flex application - when you add the site to Internet Explorer Favorites, then later try to access the site with the Favorites link, we get the following error message: "internet explorer cannot open the internet site http://our url. Operation aborted". If we then bring up the properties for the link and remove the trailing "#' from the url, the link works.
What is this trailing "#", and can it be removed? Is there a way to have Internet Explorer bookmarking to work for this site (other than manually editing the bookmark)? The problem doesn't occur in Firefox (but not everyone has access to that browser).
The trailing # is used to provide information to your client-side framework. It was originally meant to provide the ability to link to anchor points in an HTML document. It has been "hijacked" by JavaScript frameworks to provide state information to Flash and Flex applications.
The primary benefit of using # to navigate is that the browser doesn't navigate off the current page - meaning you only need to load your framework once. Traditional URLs would force an entire page reload.
Most likely you can't remove it. You should be able to provide a means for a secondary URL scheme that encodes what you need in a query string (?foobar=1).
You will need to configure server-side processing to either redirect the user to the hash URL or load the necessary information via a JavaScript hook to your Flex framework.
You might also look into the new Google Chrome plugin for IE.
You can turn this off in the compiler parameters in Flex Builder. Go into the project settings, then in "Flex Compiler" uncheck the box that says "Enable integration with browser navigation".

Resources