SharePoint Integration in .NET

Encoding Quick Response Code in .NET SharePoint Integration
SharePoint Integration
Create QR Code JIS X 0510 In VS .NET
Using Barcode generator for ASP.NET Control to generate, create Denso QR Bar Code image in ASP.NET applications.
Figure 1713: Choosing a site collection and Web application for activation
Paint Barcode In VS .NET
Using Barcode encoder for ASP.NET Control to generate, create barcode image in ASP.NET applications.
WARNING
Print QR-Code In C#.NET
Using Barcode maker for .NET framework Control to generate, create QR Code JIS X 0510 image in .NET applications.
Activation Is per Site Collection
Paint QR-Code In VS .NET
Using Barcode printer for .NET framework Control to generate, create QR-Code image in .NET framework applications.
The form can render in the browser only on a site collection in which it s activated
QR Code Creator In VB.NET
Using Barcode encoder for .NET Control to generate, create Quick Response Code image in .NET applications.
Using a Form Template Across Multiple Site Collections
ECC200 Generation In .NET Framework
Using Barcode creator for ASP.NET Control to generate, create Data Matrix ECC200 image in ASP.NET applications.
A form template can be activated to multiple site collections
Bar Code Printer In VS .NET
Using Barcode creation for ASP.NET Control to generate, create barcode image in ASP.NET applications.
As an exclusive repository for admin-deployed and activated form templates, the FormServerTemplates library exists on all site collections where Forms Services is enabled The location is http://myserver/ formservertemplates on the root site, while another site (eg, mysite) could be http://myserver/sites/mysite/formservertemplates Since it is essentially a special type of SharePoint document library, you can do customizations as for any other library
UPC A Printer In VS .NET
Using Barcode creator for ASP.NET Control to generate, create UPC Symbol image in ASP.NET applications.
17: Advanced Forms Ser vice s
Barcode Drawer In .NET
Using Barcode creation for ASP.NET Control to generate, create bar code image in ASP.NET applications.
Activation with the Site Collection Features Page Activating a form template via a site collection might be a more straightforward approach for some administrators This is particularly true if you re accustomed to visually navigating to the site versus identifying it by name as we did with the Activate Form Template page Start by navigating your browser to the site where you want to activate an uploaded form template (eg, http://myserver will be the root site collection) If you re a site collection administrator, you should see the Site Actions drop-down in the upper-right portion of the page Choose Site Settings Next, go to the Site Collection Features page by clicking on a link with the same name The page, similar to Figure 1714, lists all features on the site, sorted by the value of the Status column The features include InfoPath form templates, work ows, site content types, and even Forms Services itself (Yes, you can deactivate Forms Services from this site collection!) Find the template you want to activate and click its corresponding Activate button
Making ANSI/AIM Code 128 In .NET
Using Barcode maker for ASP.NET Control to generate, create Code 128C image in ASP.NET applications.
Figure 1714: Activating a form template on the Site Collection Features page
USS-128 Creation In .NET Framework
Using Barcode maker for ASP.NET Control to generate, create EAN 128 image in ASP.NET applications.
Form Template Names Listed in the Site Collections Features
USPS POSTal Numeric Encoding Technique Barcode Creator In .NET
Using Barcode generation for ASP.NET Control to generate, create USPS POSTNET Barcode image in ASP.NET applications.
The form name (not le name) is used in the Site Collection Features list
Create Data Matrix In Visual Basic .NET
Using Barcode creator for Visual Studio .NET Control to generate, create Data Matrix 2d barcode image in VS .NET applications.
Alternate Admin Deployments The SharePoint site is arguably one of the easiest ways for an administrator to admin deploy a form But what if you had hundreds of forms Or what if you had a tool that would allow some users to admin deploy forms but not give them access to the entire SharePoint Central Administration site If these scenarios (or something
Printing Code 128 Code Set C In VS .NET
Using Barcode generation for .NET framework Control to generate, create ANSI/AIM Code 128 image in Visual Studio .NET applications.
SharePoint Integration
UPC-A Supplement 5 Printer In .NET Framework
Using Barcode creator for .NET Control to generate, create UPC Symbol image in VS .NET applications.
similar) sound familiar, we have solutions that may help you Besides the SharePoint Web pages, there are two alternate ways to upload and deploy form templates: via the command line and programmatically Command-Line Admin Deployment To facilitate command-line deployment, we introduce the stsadmexe tool If you ve familiar with SharePoint, you might have heard of or used it before The stsadmexe tool allows command-line administration of your SharePoint site Almost everything you can do with the Web site you can also do with this tool Let s look at the Forms Services speci c functionality provided by stsadmexe To start using stsadmexe, open a Windows command shell prompt and change the directory to %CommonProgramFiles%\Microsoft Shared\Web Server Extensions\12\BIN Table 173 shows a full listing of commands speci c to Forms Services Some of the more common commands include uploadformtemplate and activateformtemplate Listing 175 shows sample command-line executions for stsadmexe
Generating Bar Code In .NET
Using Barcode encoder for .NET framework Control to generate, create barcode image in .NET applications.
Table 173: Full List of stsadmexe Commands Specific to Forms Services Operation activateformtemplate deactivateformtemplate enumformtemplates getformtemplateproperty What It Does
Generate Data Matrix 2d Barcode In Java
Using Barcode printer for Java Control to generate, create Data Matrix ECC200 image in Java applications.
Activates a form template at a given URL Deactivates a form template at a given URL Lists all activated form templates Gets a property (eg, version) from a form template Converts all form templates as if they were reuploaded Removes a form template Sets a property on a form template Upgrades a form template with a newly uploaded version Uploads a form template Behaves similar to the Verify button on the Upload Form Template page
Print Code39 In VB.NET
Using Barcode creation for Visual Studio .NET Control to generate, create Code39 image in .NET applications.
reconvertallformtemplates
Bar Code Drawer In Visual Basic .NET
Using Barcode encoder for .NET Control to generate, create bar code image in .NET applications.
removeformtemplate setformtemplateproperty upgradeformtemplate
Painting Code-39 In Visual C#.NET
Using Barcode generator for Visual Studio .NET Control to generate, create Code39 image in VS .NET applications.
uploadformtemplate verifyformtemplate
17: Advanced Forms Ser vice s
Listing 175: Sample Command Lines for Running the stsadmexe Tool
stsadmexe o uploadformtemplate lename c:\myforms\surveyxsn stsadmexe o activateformtemplate url http://myserver lename c:\myforms\surveyxsn stsadmexe o enumformtemplates
NOTE
Using the stsadmexe Tool
For more information on stsadmexe, use stsadmexe / or see the Windows SharePoint Services administration guide
Programmatic Admin Deployment While command-line deployment can help you automate Forms Services administration using batch les, it might not completely suf ce for your needs The lowest level of administrative control available is to use the Forms Services object model In fact, the OM is exactly what stsadmexe uses behind the scenes to do its work! To create a program that uses the object model, begin by creating a new Visual Studio project (or use your favorite development environment) Add an assembly reference to the following dll les: MicrosoftOf ceInfoPathServerdll in %ProgramFiles%\Microsoft Of ce Servers\120\Bin MicrosoftSharePointdll in %CommonProgramFiles%\Microsoft Shared\Web Server Extensions\12\ISAPI MicrosoftOf ceServerdll in %CommonProgramFiles%\Microsoft Shared\Web Server Extensions\12\ISAPI We don t use it in this sample, but objects belonging to shared services and providers live in the MicrosoftOf ceServerdll assembly These three assemblies include everything you require for all of your administration needs To show how the admin OM can be used, we created a sample Windows application, as shown in Figure 1715 It provides three functions: Verify, Upload & Activate (to the root site collection), and List Form Templates To run this sample, you need to execute the code on a server in the farm (The code is packaged into the FormsServicesAdmin sample archive) We ll quickly look at a few core lines of code used in the program