Click here to Skip to main content
15,891,740 members

Comments by Member 13954973 (Top 2 by date)

Member 13954973 21-Aug-18 3:21am View    
I understood.
Thanks.
Member 13954973 20-Aug-18 22:49pm View    
Thanks a lot.

I knew how to use the Crystal Report prints to the printer, but just need to
(1) select conditions , press the print button then show the report.
(2) press crystal report print button .
(3) choice the printer then printing.
I wrote:
Dim oRpt As New ReportDocument
oRpt.Load(Server.MapPath("T13RLABEL.rpt"))
Dim mytablelogoninfo As New TableLogOnInfo
Dim mytable As Table
For Each mytable In oRpt.Database.Tables
mytablelogoninfo = mytable.LogOnInfo
With mytablelogoninfo.ConnectionInfo
.ServerName = ConfigurationSettings.AppSettings("ServerString")
.DatabaseName = ConfigurationSettings.AppSettings("DatabaseString")
.UserID = ConfigurationSettings.AppSettings("UidString")
.Password = ConfigurationSettings.AppSettings("PwdString")
End With
mytable.ApplyLogOnInfo(mytablelogoninfo)
Next
oRpt.RecordSelectionFormula = "{T13LABEL.USER_ID} = """ & sys_user & """"
oRpt.Refresh()

CreportV.ReportSource = oRpt