.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Create a Document inside Document Set

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :C#

i have a business process , it includes few tasks and documents in series to be created. I have created a document set with these documents, i set default content for the first initial document only.

What i want to achieve is that when the first document is finalized, a workflow (automatic or Manual) runs and create another document in same document set.

View Complete Post

More Related Resource Links

Embed word document inside excel



I am using ASP.NET and C# 2.0 and working on web application.

I want to embed a word document inside a excel sheet.

How to embed word document inside excel.

Thank you



SPD workflow status show "starting" when I create a document from the library !!. and hangs

I have a document library in MOSS 2007. Have created a WF and that starts "autmatically when new item created" In the document library I have created couple of column those are mandatory (required columns) and user has to fill those column while uploading a document as well creating a document from library. WF has ran and completed succefully  when I use "upload" option to load a document.  As you are aware, when we "upload" a document, we will have to fill all "required columns" and the click "check in" command button.  After I do all this, document get loaded and WD ran succesfully. However, the WF is not running when I create a document (.docx) from this library (using "new" button) !!.  I have filled all required field in the document information panel . After save & exit from WORD application, I can see WF status as "starting". But, it never started and completed.  So I did following and found WF worked !! a) After creating document (.docx) using "new" option I found WF status "starting"!. So,  I did "Check-out and Check-in" manually from document library. After doing this,  WF ran and status has been changed as "completed" b) In SPD, I change workflow start option from "Automatic" to "Manually start".&nb

Unable to create columns in document library after applying custom master page to site

Hi, I have applied a custom master page to a site.There is a document library in it. I am unable to add columns in it or change the default view.Nothing happens when I click on OK butoon after making my changes. However the columns are created/default view is changed when I apply the default master page. Guess I am missing some TagPrefix or sharepoint control on master page.I had solved this problem earlier in this way but don't remeber it now. Can anyone help?

Trying to include version history table inside Word document

Running MOSS 2007 with SP1, Office 2007.   I'm trying to create a table (doesn't have to be a table though) of a document's version history inside the document. This would be the history information kept by SharePoint. Since we can't even easily get just the current version number into the document I'm having problems and thought I'd see if anybody has a bright idea.   First, a couple facts. From Word 2007 it is possible to view the Document Library version information by clicking on the Office Button > Server > View Version History. This brings up the following: Click for screenshot   My goal is to get that version information displayed IN the document so when it is printed there is a document history. I tried using IRM label policies, but this only displays the current version and you can't include the comments.   After some digging I found the following code sample on MSDN:   Code SnippetDim dlvVersions As Office.DocumentLibraryVersions    Dim dlvVersion As Office.DocumentLibraryVersion    Dim strVersionInfo As String    Set dlvVersions = ActiveDocument.DocumentLibraryVersions    If dlvVersions.IsVersioningEnabled Then        strVersionInfo = "This document has " & dlvVersions.Count & " versions: " & vbCrLf        For Each dlvVersion In dlvVersions            strVersionInfo = strVersionInfo & _                " - Versi

Cannot create new document with word 2007

Hi!   I'm using WSS 3.0 for development on windows 7 64bit. I created a document library based on word 2003 template. Using Internet Explorer 8, when I click "New" button on the library word 2007 starts with "template.doc". Then word displays a nice error message "microsoft office word has not been installed for the current user. please run setup to install the application" and quits.   Things I tried and NOT working: - Adding sharepoint user to local admin - Giving Everyone full control to "C:\Users\All Users\Microsoft\OFFICE\DATA\OPA12.dat"  - deleting "C:\Users\All Users\Microsoft\OFFICE\DATA\OPA12.dat"   any suggestions ?

How to give access to SPFile which is NOT inside a document library?



I have a module in my SharePoint 2010 solution, the element.xml looks like this:

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
 <Module Name="ModuleName" Url="

create a custom "newform.aspx" for document library using sharepoint designer and web services


Hi All,

I need to change the look and feel of "NewForm.aspx" for my Sharepoint 2007 Document Library. But the constraints are

1. I cant use C# coding. No Visual Studio.

2. Not allowed change anything in the farm level. e.g. cant install features/webparts fo this.

3. Can only use JavaScript, JQuerry and Sharepoint Designer 2007.

I came across some suggestions that we can create a custom page in Javascript/JQuery. Which will take all input data and insert new items in list/doc library using some XML services.

Please help me, I dont know if this is really possible. Let me know if any alternative is possible.

create xml document in vb.net


how to create xml doc in vb.net and sent it to web server.

How to create pdf document



How to create a pdf document and write the text in this pdf?


How to "Create New" document for Office Web Apps in SP2010?

I notice users can only upload their files (Word, Excel, Powerpoint) and edit them. But is there a way users can CREATE NEW documents in Office Web Apps in SP2010?
Bryan Chung's Blog http://www.bryanchung.sg

Create CAML for listing docs from a document library which has subfolders as well.

Hi imagine a doc library in sharepoint holding PDF's called DocA.
DocA has subfolders e.g DocA\sub1, DocA\sub2
I am writing a CAML query to extract PDF's which were created older than 7 days.
My issues is i cant get the PDf's items in CAML query and it just shows the folder only.

Here is my code.

SPSite site = new SPSite(Site);
SPWeb web = site.OpenWeb();
SPList list = web.Lists["DocA"];
string querystring = "<Leq>" +
                     "<FieldRef Name='Created' />" +
                     "<Value Type='DateTime'><Today /></Value>" +

SPQuery query = new SPQuery();
query.RecurrenceOrderBy = true;

query.Query = querystring;
DataTable table = list.GetItems(query).GetDataTable();
return table;

SharePoint 2010 Documents inside Document set is no inheriting shared fields (lookup fields)


I have a situation that is making me crazy !! I have a content type that inherits from Document set. I have set some fields (metadata) in the document set and configured the document set to share it with documents inside it.

All the fields are being shared (inherited) to the documents inside the document set except for the lookup fields

I have 2 lookup fields that looks for information from a SharePoint list.

I'm using SharePoint 2010.



Thanks ..


Office Web Apps - Create new document in browser in IE



As you know, when one creates a new document in Google Chrome, you get to use the Office Web Apps to create the document (not Word). In Firefox and IE, this is not the case.  Creating a new document in Sharepoint opens Word (or excel, etc).  

Is there a way to force IE and Firefox to use the same behavior as Chrome...and create the new document in browser using Office Web Apps? 

Thank you in advance,


create a Document Set in SP2010 site Programatically?


Hi, can anyone  explain how to create a document set inside a Document Library preferably using Client Object Model of SharePoint 2010 ?


Thanks, Devi Prasad M

How do I create an Upload.aspx link on the front page of my document library without the subsequent


I need to create an Upload.aspx link on the front page of my document library, rather than rely on the + Add Document link at the bottom of the list.

When I copy the URL of the Add Document link to my page or as a quick link it uploads the file, brings up the metadata form, but then asks the user to save the file on save.

Clicking on the + Add Document link does a clean upload without the reuest to save the file?

The link I create has the format "_Layouts/Upload.aspx?List={ABC123}&RootFolder=tFolder="

Is there some parameter to Upload.aspx? that I need to add?

SharePoint 2010 Event Receiver verifying Content Types inside Document Sets


I have a document library and document set is added as one of the content types. The user goes inside the document set and inside the document set, I have 2 different content types. Now my scenario is that, one of the content types - which is referred as Main Report should not be used twice. I mean, within the document set, only one document of Main Report content type should exist. How can we do this?


Create a pdf document from win form application by fetching fields from database


Assuming i have a winform that has a button called "Create a Quote". Once user clicks it, a PDF File gets created on desktop. The PDF File has a fixed design/structure e.g. the logo is at the top left corner, the headers are fixed, etc. However, the data it self is pulled from a database.

As you see above, Quotation #, Description, Qty, U.P (USD), T.P (USD) records should be fetched from the db and dumped in the pdf template then create the pdf for user.

I haven't done this before. I hope my question is clear enough. Feel free to put useful web links that help me achieve it.

Any help will be appreciated.

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend