Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
0
Answer
get images using web service _vti_bin/imaging.asmx
saravanan natarajan
11y
1.4k
1
Reply
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
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
convert word from sharepoint to pdf without word automation
Using SPFILE download the document from document library