<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Export ReportControl data as CSV file</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Export ReportControl data as CSV file]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 15 May 2026 13:18:29 +0000</pubDate>
  <lastBuildDate>Wed, 10 Sep 2008 23:24:16 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=12028</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Export ReportControl data as CSV file :   Hi,  I have copied 2 functions...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12028&amp;PID=40919&amp;title=export-reportcontrol-data-as-csv-file#40919</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1200">Stilki</a><br /><strong>Subject:</strong> 12028<br /><strong>Posted:</strong> 10 September 2008 at 11:24pm<br /><br /><DIV></DIV><DIV></DIV><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>I have copied 2 functions below that will&nbsp;export the contents of the report control into a file. The functions create a TAB delimited file If you want a CSV file, simply change the TAB delimiter to a comma and the filename extension to csv instead of txt.</DIV><DIV>&nbsp;</DIV><DIV>To use the function, simply execute the line below</DIV><DIV>&nbsp;&nbsp; <FONT color=#990033>Call ExportRecords(ReportControl, False)</FONT></DIV><DIV>&nbsp;</DIV><DIV>The second parameter is for exporting selecting rows or all rows.</DIV><DIV>You will also need a reference to the Microsoft Scripting Runtime library to create the file. You can change this to use VB intrinsic file functions of course.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Public Function ExportRecords(ByRef rptControl As XtremeReportControl.ReportControl, Optional ByVal bolUseSelectedRows As Boolean = False) As Boolean<BR>&nbsp;&nbsp; Dim Row As ReportRow<BR>&nbsp;&nbsp; Dim Col As ReportColumn<BR>&nbsp;&nbsp; Dim Columns As ReportColumns<BR>&nbsp;&nbsp; Dim Rows As ReportRows<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp; Dim lngCols As Long<BR>&nbsp;&nbsp; Dim Cols() As Long<BR>&nbsp;&nbsp; <BR>&nbsp;&nbsp; Dim strItemLine As String<BR>&nbsp;&nbsp; Dim strColumnHeaders As String<BR>&nbsp;&nbsp; Dim strBuffer As String<BR>&nbsp;&nbsp; Dim strFileName As String<BR>&nbsp;&nbsp; <BR>&nbsp;&nbsp; Dim objStream As TextStream<BR>&nbsp;&nbsp; Dim objFS As FileSystemObject<BR>&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp; On Error GoTo ErrHandler<BR>&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;'A reference to a Common Dialog control on your Form&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</DIV><DIV>&nbsp;&nbsp; 'Get the file to export to from user<BR>&nbsp;&nbsp; With dlgCommonDialog<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .CancelError = False<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .DialogTitle = "Save as..."<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .FileName = "Exported data.txt"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Filter = "Exported data|*.txt"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .FilterIndex = 1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .flags = cdlOFNNoReadOnlyReturn Or cdlOFNHideReadOnly<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .InitDir =&nbsp;App.Path<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .ShowSave<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strFileName = .FileName<BR>&nbsp;&nbsp; <BR>&nbsp;&nbsp; End With<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp; If LenB(strFileName) &gt; 0 Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set objFS = New FileSystemObject<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set objStream = objFS.OpenTextFile(strFileName, ForWriting, True)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strColumnHeaders = ""<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Columns = rptControl.Columns<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lngCols = 0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'Create an array of the column order indexes as they may have changed by user<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For Each Col In Columns<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Col.Visible Then&nbsp; 'I am interested in visible columns only<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If lngCols &gt; 0 Then strColumnHeaders = strColumnHeaders &amp; vbTab<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strColumnHeaders = strColumnHeaders &amp; Col.Caption<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ReDim Preserve Cols(lngCols)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cols(lngCols) = Col.ItemIndex 'Get the order of the column indexes<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lngCols = lngCols + 1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Next Col<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; objStream.WriteLine strColumnHeaders<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If bolUseSelectedRows Then<BR>&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For Each Row In rptControl.SelectedRows<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strItemLine = GetExportRecord(Columns, Row, Cols, True, False)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If LenB(strItemLine) &gt; 0 Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; objStream.WriteLine strItemLine<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Next Row<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Else<BR>&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For Each Row In rptControl.Rows<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strItemLine = GetExportRecord(Columns, Row, Cols, True, False)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If LenB(strItemLine) &gt; 0 Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; objStream.WriteLine strItemLine<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Next Row<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; objStream.Close<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ExportRecords = True<BR>&nbsp;&nbsp; <BR>&nbsp;&nbsp; End If 'LenB(strFileName)</DIV><DIV>Exit_Proc:<BR>&nbsp;&nbsp; <BR>&nbsp;&nbsp; Set objStream = Nothing<BR>&nbsp;&nbsp; Set objFS = Nothing<BR>&nbsp;&nbsp; Set Row = Nothing<BR>&nbsp;&nbsp; Set Col = Nothing<BR>&nbsp;&nbsp; Set Columns = Nothing<BR>&nbsp;&nbsp; Set Rows = Nothing<BR>&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp; Exit Function<BR>&nbsp;&nbsp; <BR>ErrHandler:<BR>&nbsp;&nbsp;&nbsp;'Error handling here<BR>&nbsp;&nbsp; Resume Exit_Proc:</DIV><DIV>End Function<BR></DIV><DIV>&nbsp;</DIV><DIV><BR>'GetExportRecord<BR>Private Function GetExportRecord(ByRef Columns As ReportColumns, ByRef Row As ReportRow, ByRef Cols() As Long, Optional ByVal bolOnlyVisibleRecords = True, Optional ByVal bolUseDoubleQuoteData As Boolean = False) As String<BR>&nbsp;&nbsp; Dim Col As ReportColumn<BR>&nbsp;&nbsp; Dim Item As ReportRecordItem<BR>&nbsp;&nbsp; Dim i As Long, j As Long, k As Long<BR>&nbsp;&nbsp; Dim lngCols As Long<BR>&nbsp;&nbsp; Dim strItem As String<BR>&nbsp;&nbsp; Dim bolContinue As Boolean<BR>&nbsp;&nbsp; <BR>&nbsp;&nbsp; <BR>&nbsp;&nbsp; 'Test the Col array to ensure you have columns to traverse<BR>&nbsp;&nbsp; On Error Resume Next<BR>&nbsp;&nbsp; <BR>&nbsp;&nbsp; lngCols = UBound(Cols)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp; If Err.Number = 0 Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; On Error GoTo ErrHandler<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GetExportRecord = ""<BR>&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Not Row.GroupRow Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If bolOnlyVisibleRecords Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bolContinue = Row.Record.Visible<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Else<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bolContinue = True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If bolContinue Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For i = 0 To lngCols<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strItem = ""<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Col = Columns.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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Next j<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Else<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strItem = Item.value<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If 'ConstraintEdit<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If 'HasCheckbox<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If LenB(GetExportRecord) &gt; 0 Then GetExportRecord = GetExportRecord &amp; vbTab<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If bolUseDoubleQuoteData Then strItem = """" &amp; strItem &amp; """"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'Replace carriage return line feed characters with a space<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GetExportRecord = GetExportRecord &amp; Replace(strItem, vbCrLf, " ")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If 'Col.Visible<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Next i<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If 'Row.Record.Visible<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If 'Not Row.GroupRow<BR>&nbsp;&nbsp; <BR>&nbsp;&nbsp; End If</DIV><DIV>&nbsp;&nbsp; Exit Function<BR>&nbsp;&nbsp; <BR>ErrHandler:<BR>&nbsp;&nbsp; <BR>&nbsp;&nbsp; Debug.Print "GetExportRecord", Err.Number, Err.Description<BR>&nbsp;&nbsp; <BR>End Function<BR></DIV>]]>
   </description>
   <pubDate>Wed, 10 Sep 2008 23:24:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12028&amp;PID=40919&amp;title=export-reportcontrol-data-as-csv-file#40919</guid>
  </item> 
  <item>
   <title><![CDATA[Export ReportControl data as CSV file : Hi,  Does anybody know how I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12028&amp;PID=40606&amp;title=export-reportcontrol-data-as-csv-file#40606</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4379">mkhadem</a><br /><strong>Subject:</strong> 12028<br /><strong>Posted:</strong> 29 August 2008 at 5:03pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Does anybody know how I can export the data in the CR to a CSV file?</DIV><DIV>&nbsp;</DIV><DIV>Thanks</DIV><DIV>Mo</DIV>]]>
   </description>
   <pubDate>Fri, 29 Aug 2008 17:03:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12028&amp;PID=40606&amp;title=export-reportcontrol-data-as-csv-file#40606</guid>
  </item> 
 </channel>
</rss>