VB·Òë³ÉC#
Imports Microsoft.Reporting.WinForms
Public Class fMicrosoftReport
Private colReportName As String '±¨±íÃû³Æ
Private ReportData As DataTable '±¨±íÊý¾Ý¼¯
Private colDataSetName As String 'Êý¾Ý¼¯Ãû³Æ
Dim ReportDataSource1 As Microsoft.Reporting.WinForms.ReportDataSource
''' <summary>
''' ±¨±íÃû³Æ
''' </summary>
Property ReportName() As String
Get
Return colReportName
End Get
Set(ByVal value As String)
colReportName = value
ReportViewer1.LocalReport.ReportEmbeddedResource = colReportName
End Set
End Property
''' <summary>
''' ±¨±íÊý¾Ý¼¯
''' </summary>
Public Property NewData() As DataTable
Get
Return ReportData
End Get
Set(ByVal value As DataTable)
ReportData = value
End Set
End Property
''' <summary>
''' Êý¾Ý¼¯Ãû³Æ
''' </summary>
Public Property DataSetName() As String
Get
Return colDataSetName
End Get
Set(ByVal val
Ïà¹ØÎÊ´ð£º
VBÔõÑù»ñµÃÊó±ê´¦µÄ³¬¼¶Á¬½ÓÄØ£¿
ÔÚWebBrowser¿Ø¼þÖÐÓÐÕâÑùÒ»¸öʼþ:StatusTextChange(index As Integer, ByVal Text As String)
ËüµÄText²ÎÊýÕýÊÇÊó±ê´¦µÄ³¬¼¶Á¬½Ó,µ«ÎÊÌâÊÇÈç¹ûÎÒµÄä¯ÀÀÆ÷Õýà ......
ÆäʵÕâ¸öÎÊÌâ¿ÉÒÔÕÒÀÏʦ»Ø´ð£¬Õâ²»·Å¼ÙÁËÂð£¬ÎÊÎʸ÷λ¸ßÊÖ¡£
¾ø¶ÔÓÐ £¬ASP¡¢netÀïÓкöàµÄÂß¼Åжϵȶ¼ÐèÒªwinform»ù´¡
C#ÓïÑÔ
Ado.net C/S½á¹¹
Asp.net B/S½á¹¹
Á©¶¼ÊÇ΢Èí³öµÄ£¬¶¼ÄÜÓÃC#½øÐпª·¢ ......
ÎÒÓÐÒ»¸öÀàËÆµÄxmlµÄ string£¬Ïëͨ¹ý±éÀúÔõô¸öxml Êä³öÎÒÏëÒªµÄelementµÄÖµ
xml Ϊ£º
<Discover xmlns="urn:schemas-microsoft-com:xml-analysis">
<RequestType>DISCOVER_XML_ME ......
xmlDoc1.loadXML(h)×ÜÊÇ·µ»Øfalse£¬ÎªÊ²Ã´£¿Ð»Ð»°ïæ»Ø´ðÒ»ÏÂ
hÊÇÊ²Ã´ÄØ¡£¡£¡£¡£¡£¡£¡£¡£¡£
hÊÇxml¸ñʽµÄ×Ö·û´®
ÄãÊÇÏë´ò¿ª¡£XML¸ñʽµÄÎļþ°É£¿
ÎÒÊǰÑh·ÅÔÚxmlDoc1ÀÓÃxmlDoc1.loadXML(h)£¬È»ºóÈ¡xmlDo ......