You're Browsing As A Guest! Register Now... |
||
|
Become a VB Expert!
Join 415,729 VB Programmers for FREE! Get instant access to thousands
of VB experts, tutorials, code snippets, and more! There are 1,905 people online right now.Registration is fast and FREE... Join Now!
|
||
Page 1 of 1
Crystal Report Crytsal Report Connections
#1
Crystal Report
Posted 06 May 2007 - 07:51 PM
gud day to all
i want a help on my printing report
could anybody help and give me a sample code
on how to establish a connection and produce some print output among
these tools..
php and cyrstal report
vb and crystal report
asp.net and crystal report
thanks ang god bless to all
i want a help on my printing report
could anybody help and give me a sample code
on how to establish a connection and produce some print output among
these tools..
php and cyrstal report
vb and crystal report
asp.net and crystal report
thanks ang god bless to all
#2
Re: Crystal Report
Posted 10 June 2007 - 09:19 AM
guyber, on 6 May, 2007 - 08:51 PM, said:
gud day to all
i want a help on my printing report
could anybody help and give me a sample code
on how to establish a connection and produce some print output among
these tools..
php and cyrstal report
vb and crystal report
asp.net and crystal report
thanks ang god bless to all
i want a help on my printing report
could anybody help and give me a sample code
on how to establish a connection and produce some print output among
these tools..
php and cyrstal report
vb and crystal report
asp.net and crystal report
thanks ang god bless to all
Just some suggestions on how to print the report in VB6
First thing is to add Data Report and Data environment.
paranormal_06@yahoo.com
PM me at YM
#3
Re: Crystal Report
Posted 12 June 2007 - 05:36 AM
sastre06, on 10 Jun, 2007 - 10:19 AM, said:
guyber, on 6 May, 2007 - 08:51 PM, said:
gud day to all
i want a help on my printing report
could anybody help and give me a sample code
on how to establish a connection and produce some print output among
these tools..
php and cyrstal report
vb and crystal report
asp.net and crystal report
thanks ang god bless to all
i want a help on my printing report
could anybody help and give me a sample code
on how to establish a connection and produce some print output among
these tools..
php and cyrstal report
vb and crystal report
asp.net and crystal report
thanks ang god bless to all
Just some suggestions on how to print the report in VB6
First thing is to add Data Report and Data environment.
paranormal_06@yahoo.com
PM me at YM
After adding a crystal report to a web project the following code shoud do the trick to allow you to query a database produce the report and show to user based on a shared directory on the server.
iwoode
[\quote]
Sub SLDPDF()
Dim sDate As String = Format(Today, "MMddyy")
Dim RepType As String = "SLD_"
Dim oRpt As New STD1
CrystalReportViewer1.ReportSource = oRpt
Dim MyConnection As New SqlClient.SqlConnection
Dim strConnection As String = ConfigurationSettings.AppSettings("TEST")
'Dim strConn As String = Current.Session("strConn")
MyConnection.ConnectionString = strConnection
Dim strSql = "select * from test
Dim myDA As New System.Data.SqlClient.SqlDataAdapter
Dim myDS As New DataSet
myDA.SelectCommand = New System.Data.SqlClient.SqlCommand(strSql, MyConnection)
myDA.Fill(myDS, "Command")
oRpt.SetDataSource(myDS.Tables(0))
Dim DiskOpts As CrystalDecisions.Shared.DiskFileDestinationOptions = New CrystalDecisions.Shared.DiskFileDestinationOptions
oRpt.ExportOptions.ExportDestinationType = CrystalDecisions.Shared.ExportDestinationType.DiskFile
oRpt.ExportOptions.ExportFormatType = CrystalDecisions.Shared.ExportFormatType.PortableDocFormat
DiskOpts.DiskFileName = "D:\EXPORT\" & RepType + sDate & ".pdf"
oRpt.ExportOptions.DestinationOptions = DiskOpts
oRpt.Export()
Response.Redirect("\\servername\EXPORT\" & RepType + sDate & ".pdf")
Page 1 of 1


Ask A New Question
Reply





MultiQuote






|