விரைவான வெற்றி: ஷேர்பாயிண்ட் ஒரு SPListItem நேரடியாக InfoPath பிற படித்தல்

I’m been working on a project where I need to extract attachments from an InfoPath form. There are some good resources for parsing InfoPath forms (இது வெறும் XML கோப்புகளாகும், அது உண்மையில் மிகவும் எளிதானது).

நான் திட்ட கட்டி போது, I started by downloading an InfoPath form and saving it to my local hard drive. My c# code was reading directly from that instance. எனினும், the InfoPath forms are really living inside a SharePoint forms library. I did a little half hearted searching to find out how to read it directly from the library and almost gave up, in which case I would have saved the form to a local temp directory and read it from there. எனினும், there’s no need to go through those hoops as you can read it directly from the library. This little snippet shows how:

/// இங்கு வர்க்கம் வரையறை பொருட்களை, உள்ளிட்ட:
தனிப்பட்ட SPFile mySharePointFile; /* ஒரு SPList பகுதியாக */
// மேலும் குறியீடு இங்கே நாம் வர்க்கத்தின் ஒரு முறை உள்ளே செல்கிறது:
XmlTextReader textReader;
textReader = புதிய XmlTextReader(mySharePointFile.OpenBinaryStream());

= textReader.WhitespaceHandling WhitespaceHandling.None;

textReader.Read();

// கணு மதிப்பு இருந்தால்

நேரம் (textReader.Read())
{

… and so on and so forth …

மேலே அவர்கள் முக்கிய பிட் நாம் OpenBinaryStream வழியாக நேரடியாக InfoPath படிக்க முடியும் என்று() method call on the SPFile as a parameter to the constructor on XmlTextReader. It works great.

</இறுதியில்>

என்னுடைய குழுசேர்.

மணிக்கு ட்விட்டரில் என்னை பின் http://www.twitter.com/pagalvin

Technorati குறிச்சொற்கள்:

ஒன் நினைத்தேன் "விரைவான வெற்றி: ஷேர்பாயிண்ட் ஒரு SPListItem நேரடியாக InfoPath பிற படித்தல்

  1. nesreen

    Hi,
    நான் இந்த உதவி வேண்டும் , நான் ஷேர்பாயிண்ட் வேண்டும் 2007 மீண்டும் அட்டவணை தளம் மற்றும் infopath , நான் என்ன செய்ய வேண்டும் முறை வடிவம் நான் வளைய வேண்டும் மற்றும் எஸ்.பி. வடிவம் நூலகம் நிகழ்வு கையாளுதல் பயன்படுத்தி பட்டியலில் தரவு சேமிக்க ஷேர்பாயிண்ட் வடிவங்கள் நூலகம் சேமிக்கப்படும் உள்ளது.

    எந்த உதவி உண்மையில் பாராட்டப்படுகிறது.

    நன்றி

ஒரு பதில் விட்டு

உங்கள் மின்னஞ்சல் முகவரி வெளியிடப்பட்ட முடியாது. தேவையான புலங்கள் குறிக்கப்பட்டன *