You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
138 lines
5.4 KiB
138 lines
5.4 KiB
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
|
<HTML xmlns:MSHelp="http://msdn.microsoft.com/mshelp" DIR="LTR"><HEAD>
|
|
<meta name="GENERATOR" content="VBdocman .NET - documentation generator; http://www.vbdocman.com">
|
|
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=UTF-8">
|
|
<TITLE>MyDocMgmt.Get_RptDatei -Methode</TITLE>
|
|
<xml>
|
|
<MSHelp:TOCTitle Title="MyDocMgmt.Get_RptDatei -Methode"/>
|
|
<MSHelp:RLTitle Title="MyDocMgmt.Get_RptDatei -Methode"/>
|
|
<MSHelp:Keyword Index="A" Term="topic_000000000000066D"/>
|
|
<MSHelp:Keyword Index="K" Term="MyDocMgmt.Get_RptDatei -Methode"/>
|
|
<MSHelp:Keyword Index="K" Term="Vertragsverwaltung.TKB.VV.Utils.MyDocMgmt.Get_RptDatei -Methode"/>
|
|
<MSHelp:Keyword Index="F" Term="Vertragsverwaltung.TKB.VV.Utils.MyDocMgmt.Get_RptDatei"/>
|
|
<MSHelp:Keyword Index="F" Term="MyDocMgmt.Get_RptDatei"/>
|
|
<MSHelp:Keyword Index="F" Term="Vertragsverwaltung.TKB.VV.Utils.MyDocMgmt.MyDocMgmt.Get_RptDatei"/>
|
|
<MSHelp:Attr Name="DevLang" Value="VB"/>
|
|
<MSHelp:Attr Name="DevLangVers" Value="kbLangVB"/>
|
|
<MSHelp:Attr Name="DocSet" Value="Visual Basic"/>
|
|
<MSHelp:Attr Name="DocSet" Value="Visual Studio"/>
|
|
<MSHelp:Attr Name="DocSet" Value="VSM"/>
|
|
<MSHelp:Attr Name="Product" Value="VB"/>
|
|
<MSHelp:Attr Name="ProductVers" Value="kbVBp700"/>
|
|
<MSHelp:Attr Name="Product" Value="VSA"/>
|
|
<MSHelp:Attr Name="ProductVers" Value="kbVSA"/>
|
|
<MSHelp:Attr Name="Technology" Value="ManagedCode"/>
|
|
<MSHelp:Attr Name="TechnologyVers" Value="kbManagedCode"/>
|
|
<MSHelp:Attr Name="TopicType" Value="kbSyntax"/>
|
|
<MSHelp:Attr Name="TargetOS" Value="Windows"/>
|
|
<MSHelp:Attr Name="Locale" Value="kbEnglish"/>
|
|
</xml>
|
|
<META name="rtfFileName" content="">
|
|
<META NAME="save" CONTENT="history">
|
|
<!--CSS_START-->
|
|
<SCRIPT SRC="MSHelp/scripts/dtuelink.js"></SCRIPT>
|
|
<!--CSS_END-->
|
|
<SCRIPT language="JavaScript">
|
|
function indent(level) {
|
|
for (i=1; i<=level; i++) {
|
|
document.write(" ");
|
|
}
|
|
}
|
|
</SCRIPT>
|
|
</HEAD>
|
|
<body topmargin=0 id="bodyID" class = "dtBODY"><!--NONSCROLLING BANNER START-->
|
|
<div id="nsbanner">
|
|
<div id="bannerrow1">
|
|
<TABLE CLASS="bannerparthead" CELLSPACING=0>
|
|
<TR ID="hdr">
|
|
<TD CLASS="runninghead" nowrap>Vertragsverwaltung-Klassenbibliothek</TD>
|
|
<TD CLASS="product" nowrap> </TD>
|
|
</TR>
|
|
</TABLE>
|
|
</div>
|
|
<div id="TitleRow">
|
|
<H1 class="dtH1"><A NAME="topic_000000000000066D"></A>MyDocMgmt.Get_RptDatei -Methode</H1>
|
|
</div></div>
|
|
<!--NONSCROLLING BANNER END-->
|
|
|
|
<DIV id="nstext" valign="bottom"><!---->
|
|
|
|
|
|
|
|
|
|
|
|
<PRE class="syntax"><SPAN class="lang">[Visual Basic]
|
|
</SPAN><B>Public Function Get_RptDatei( _ <br> ByVal <i>Auswertungnr</i> As <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemStringClassTopic.htm">String</a>, _ <br> Optional ByVal <i>fname</i> As <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemStringClassTopic.htm">String</a> = "" _ <br>) As <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemStringClassTopic.htm">String</a></B></PRE>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<H4 class="dtH4">Parameter</H4>
|
|
<dl>
|
|
<dt><i>Auswertungnr</i></dt>
|
|
<dd>Erforderlich.</dd>
|
|
<dt><i>fname</i></dt>
|
|
<dd>Optional. Der Standardwert ist "".</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<H4 class="dtH4">Quellcode</H4>
|
|
<pre class="code"><SPAN class="lang">[Visual Basic]</SPAN>
|
|
Public Function Get_RptDatei(ByVal Auswertungnr As String, Optional ByVal fname As String = "") As String <br> Dim connection As New SqlConnection() <br> Dim DA As New SqlDataAdapter("select * from AuswertungRptDatei where AuswertungDateiNr = " & Str(Auswertungnr), connection) <br> Dim CB As SqlCommandBuilder = New SqlCommandBuilder(DA) <br> Dim ds As New DataSet() <br> Dim Filename As String = "" <br> Try <br> connection.ConnectionString = Globals.sConnectionString <br> connection.Open() <br> DA.Fill(ds, "RptFile") <br> Dim myRow As DataRow <br> myRow = ds.Tables(0).Rows(0) <br> Dim MyData() As Byte <br> Filename = Globals.clsapplication.sTmp_filepath + "\" + myRow.Item(2).ToString <br> If fname <> "" Then <br> Filename = fname <br> End If <br> MyData = myRow.Item(3) <br> Dim K As Long <br> K = UBound(MyData) <br> Dim fs As New FileStream(Filename, FileMode.OpenOrCreate, FileAccess.Write) <br> fs.Write(MyData, 0, K) <br> fs.Close() <br> fs = Nothing <br> Catch ex As Exception <br> Return "" <br> End Try <br> CB = Nothing <br> ds = Nothing <br> DA = Nothing <br> connection.Close() <br> connection = Nothing <br> Return filename <br> End Function
|
|
</pre>
|
|
|
|
|
|
|
|
<H4 class="dtH4">Forderungen</H4>
|
|
<P><b class="le">Plattformen: </b>Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition</P>
|
|
|
|
|
|
<H4 class="dtH4">Siehe auch</H4>
|
|
<p>
|
|
<a href="topic_0000000000000663.html">MyDocMgmt</a>
|
|
|
|
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
|
<DIV CLASS="footer">
|
|
<HR>
|
|
Generated by VBdocman .NET
|
|
<p>
|
|
</div></div>
|
|
</BODY>
|
|
</HTML>
|
|
|