Click here to Skip to main content
15,904,822 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Create PDF / VB.NET Pin
Steven Campbell20-Sep-04 11:24
Steven Campbell20-Sep-04 11:24 
GeneralCreate PDF / VB.NET Pin
partt20-Sep-04 10:55
partt20-Sep-04 10:55 
Generalvb6 - changing printer settings Pin
steff kamush20-Sep-04 4:07
steff kamush20-Sep-04 4:07 
GeneralRe: vb6 - changing printer settings Pin
Duncan Edwards Jones20-Sep-04 4:16
professionalDuncan Edwards Jones20-Sep-04 4:16 
GeneralCrystal Reports and CSV files Pin
KreativeKai20-Sep-04 3:40
professionalKreativeKai20-Sep-04 3:40 
GeneralRe: Crystal Reports and CSV files Pin
KreativeKai24-Sep-04 5:36
professionalKreativeKai24-Sep-04 5:36 
GeneralRe: Crystal Reports and CSV files Pin
NarendraSinghJTV19-Jan-10 19:09
NarendraSinghJTV19-Jan-10 19:09 
GeneralRe: Crystal Reports and CSV files Pin
KreativeKai25-Jan-10 5:10
professionalKreativeKai25-Jan-10 5:10 
Hi Narendra,
Sorry for the delay in response. I was on vacation last week when you posted. The Microsoft GotDotNet.com website is no longer maintained so the link I posted in 2004 no longer works. I dug back through the e-mails I kept and here were the 4 suggestions I received on that forum. Not sure which one I used or even which project I was working on at that time to even check, but hopefully posting the actual responses that they gave me will help you in some way.

Smile | :)

1st answer:

You could write the schema of the dataset created out to an xmlfile, and then add the xml file to crystal reports using More Data Sources, ADO.Net(XML).

Public Sub CreateXmlFile(ByVal XmlFilename As String, ByVal XmldataSet As DataSet)
Dim XmlFile As System.IO.FileStream
Dim XmlFileStream As New System.IO.FileStream _
(XmlFilename, System.IO.FileMode.Create)
Dim XmlOutput As New System.Xml.XmlTextWriter _
(XmlFileStream, System.Text.Encoding.Unicode)
XmldataSet.WriteXmlSchema(XmlOutput)
End Sub

2nd answer:

Can't you just connect to the CSV file with an OleDb.OleDbConnection, and fill a DataSet with an OleDb.OleDbDataAdpater?

I fill datasets in this way all the time.
-------------------------------------------
Dim txtConn as New OleDb.OleDbConnection
txtConn.ConnectionString = "Provider=miscrosoft.jet.oledb.4.0;Data Source=Directory Name;Extended Properties=Text;"

Dim txtCmd as New OleDb.OleDbCommand
txtCmd.Connection = txtConn
txtCmd.CommandText = "SELECT * FROM [filename.csv];"

Dim txtAdpt as New OleDb.OleDbDataAdpater
txtAdpt.SelectCommand = txtCmd

Dim ds as New Dataset
txtAdpt.Fill(ds)
------------------------------------------------
Now you have a disposable dataset that should be able to interact with Crystal Reports.

3rd answer:

There is a workaround for this problem on page 262 of the book at this site:
http://www.crystalreportsbook.com/?cpgn=ngcr_021803

This is a very good .Net Crystal Reports book.

It states to connect to the Excel file using DAO, then design the report, and since the DAO connection prompts for login, password, switch the connection to ODBC after the report is designed.

4th answer:

I think crystal made a fix to this problem, you might check their support site.

Lost in the vast sea of .NET

Generalvb.net template Pin
bassemhoussam20-Sep-04 0:32
bassemhoussam20-Sep-04 0:32 
GeneralRe: vb.net template Pin
Dave Kreskowiak20-Sep-04 6:31
mveDave Kreskowiak20-Sep-04 6:31 
GeneralVB.NET threading with WinHTTP Pin
Amitpd19-Sep-04 23:09
Amitpd19-Sep-04 23:09 
GeneralRe: VB.NET threading with WinHTTP Pin
Dave Kreskowiak20-Sep-04 6:27
mveDave Kreskowiak20-Sep-04 6:27 
QuestionHow to find a list of computer names for a network Pin
Laurie Comerford19-Sep-04 21:25
professionalLaurie Comerford19-Sep-04 21:25 
AnswerRe: How to find a list of computer names for a network Pin
Mekong River20-Sep-04 3:31
Mekong River20-Sep-04 3:31 
AnswerRe: How to find a list of computer names for a network Pin
jonathan1521-Sep-04 5:20
jonathan1521-Sep-04 5:20 
GeneralLevels In Treeview Pin
Sumit Domyan19-Sep-04 19:24
Sumit Domyan19-Sep-04 19:24 
GeneralRe: Levels In Treeview Pin
Dave Kreskowiak20-Sep-04 5:39
mveDave Kreskowiak20-Sep-04 5:39 
GeneralRe: Levels In Treeview Pin
Sumit Domyan20-Sep-04 21:05
Sumit Domyan20-Sep-04 21:05 
GeneralControlling System Audio (Resolved) Pin
EekimusMaximus19-Sep-04 18:49
EekimusMaximus19-Sep-04 18:49 
GeneralRe: Controlling System Audio Pin
Dave Kreskowiak20-Sep-04 5:35
mveDave Kreskowiak20-Sep-04 5:35 
GeneralRe: Controlling System Audio (Resolved) Pin
EekimusMaximus20-Sep-04 15:11
EekimusMaximus20-Sep-04 15:11 
GeneralMacro Subtitution Pin
Member 120813919-Sep-04 18:07
Member 120813919-Sep-04 18:07 
GeneralRe: Macro Subtitution Pin
Dave Kreskowiak20-Sep-04 5:21
mveDave Kreskowiak20-Sep-04 5:21 
GeneralVarPtr / AscB pls. help.. Pin
Member 129565019-Sep-04 17:25
Member 129565019-Sep-04 17:25 
Generalsetting text in another form Pin
V_A_S_S19-Sep-04 14:24
V_A_S_S19-Sep-04 14:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.