-----------------------------------------------------------
New Message on MumbaiUserGroup
-----------------------------------------------------------
From: Amol786
Message 3 in Discussion
Than'x for reply but now we are facing a new problem. Now we have created a
Document Library (With the name "Reports") . Then we have saved this document library
as a Document library template (With the name "Report Template"). Now we are able to
create a new document library using this "Report Template" document library
template,using share point administration menu. But we try to do the same thing
explained above programatically it gives an error "Returned unexpected value". find
the code private sub CreateMyWebPart()
Dim site As New Microsoft.SharePoint.SPSite("http://localhost/default.aspx")
Dim list As Microsoft.SharePoint.SPList
Dim listcoll As Microsoft.SharePoint.SPListCollection
Dim WB As Microsoft.SharePoint.SPWeb WB = site.OpenWeb()
listcoll = WB.Lists listcoll.Add("Expenditure Reports", "Company
Name", WB.ListTemplates("ReportTemplate"))
MessageBox.Show("Done")
End Sub
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/MumbaiUserGroup/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]