XDOC

How can i Load a Xdocument online who needs a username and a password

末鹿安然 提交于 2020-01-06 06:52:40
问题 Is it possible to Load an XML File who has a password and a username like so: XDocument xmlDoc = XDocument.load("htt://myApp/MyTestFile", "Username", "passwordtest"); Please help, I am hanging on that last point for my app. 回答1: How can i Load a Xdocument online who needs a username and a password You could set the Credentials property of the XmlUrlResolver, as the document said : Sets credentials used to authenticate web requests. Then use XmlReader and XmlReaderSettings for the XDocument .

IE 直接打印 页面的方式

拟墨画扇 提交于 2019-11-29 08:18:51
本文转载于: 猿2048 网站➧ IE 直接打印 页面的方式 1、 通过在IE中加载adobe pdf reader 插件 进行直接打印和打印的配置 (推荐) <body> <object id="pdf1" width="1000px" height="400px" classid="clsid:CA8A9780-280D-11CF-A24D-444553540000"> <param name="src" value="../xdoc/testDoc.do"> </object> <script language="JavaScript"> pdf1.SetShowToolbar (false); </script> <input type="button" value="打印" onclick="pdf1.printAll()"> <input type="button" value="打印(带对话框)" onclick="pdf1.printWithDialog()"> </body> 2、通过 smsx.cab 打印控件进行直接打印 <object id="factory" style="display:none" classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814" codebase="smsx.cab#Version