Extract Wiki Content to InfoPath - InfoPath Dev
in

InfoPath Dev

Extract Wiki Content to InfoPath

Last post 12-03-2008 06:46 AM by gjmcnamara. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 12-02-2008 01:35 PM

    Extract Wiki Content to InfoPath

    Hi Everyone,

    I have searched the Internet high and low for the answer and either I havent done a good job or am searching the wrong thing.

    I am trying to pull some Wiki content from a Microsoft sharepoint site into an InfoPath form and cannot see anyway of doing it.....is there a reason for this and any method of doing it?

     

  • 12-03-2008 05:57 AM In reply to

    • Shiva
    • Top 25 Contributor
    • Joined on 04-15-2005
    • India
    • Posts 694

    Re: Extract Wiki Content to InfoPath

    Hello Welcome to the Forums,

    Here is the code,

    if (site == SPSite("<SharePoint URL>"))

    {

              SPWeb web = site.OpenWeb();

              if (web != null)

              {

                  SPList list = web.Lists["Wiki Pages"];

                  SPListItem item = list.Items[1];

                  string mycontent = item["Wiki Content"].ToString();

                  //add new link 

                  mycontent += "<div><a class=ms-wikilink href=\"<Link of the home page\">Home</a></div>";

                  item["Wiki Content"] = mycontent;

                  item.Update();

            }

    }

  • 12-03-2008 06:46 AM In reply to

    Re: Extract Wiki Content to InfoPath

    Due to my limited knowledge of lower end coding, can you give me some pointers on how I would proceed with the implementation of this code?

Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.