TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
saravanan natarajan
1.6k
98
1.9k
get images using web service _vti_bin/imaging.asmx
Nov 20 2013 4:56 AM
string
listName1 =
"Word"
;
string
[] fields = {
"HEADING"
,
"TEXT"
};
string
queryStr1 =
"<GroupBy collapse='true'>"
+
"<FieldRef Name='"
+ fields[1] +
"' />"
+
"</GroupBy>"
+
"<OrderBy>"
+
"<FieldRef Name='' Ascending='False' />"
+
"</OrderBy>"
;
XmlDocument
xmlDoc =
new
System.Xml.
XmlDocument
();
XmlElement
query1 = xmlDoc.CreateElement(
"Query"
);
XmlElement
viewFields1 = xmlDoc.CreateElement(
"ViewFields"
);
XmlElement
Image = xmlDoc.CreateElement(
"image"
);
query1.InnerXml = queryStr1;
viewFields1.InnerXml =
""
;
wordlist.
Lists
lists1 =
new
wordlist.
Lists
();
lists1.Url =
"
http://dw/_vti_bin/Imaging.asmx
"
;
lists1.Credentials = System.Net.
CredentialCache
.DefaultCredentials;
XmlNode
responseNode1 = lists1.GetListItems(listName1,
null
, query1, viewFields1,
"0"
,
null
,
null
);
dt1.Columns.Add(
"HEADING"
);
dt1.Columns.Add(
"TEXT"
);
DataRow
dr1;
foreach
(
XmlNode
node
in
responseNode1)
if
(node.Name ==
"rs:data"
)
for
(
int
f = 0; f < node.ChildNodes.Count; f++)
{
if
(node.ChildNodes[f].Name ==
"z:row"
)
{
string
instrument = node.ChildNodes[f].Attributes[
"ows_HEADING"
].Value;
string
instrument1 = node.ChildNodes[f].Attributes[
"ows_TEXT"
].Value;
dr1 = dt1.NewRow();
dr1[
"HEADING"
] = instrument;
dr1[
"TEXT"
] = instrument1;
dt1.Rows.Add(dr1);
}
}
view.DataSource = dt1;
view.DataBind();
}
i try this code i did in get image part
plz help me
Reply
Answers (
0
)
convert word from sharepoint to pdf without word automation
Using SPFILE download the document from document library