If printing directly (IE: Not showing the viewer) use this code
Report.PrinterSetup Me.hWnd
report.printout
if using the viewer use this code:
Private Sub CRViewer1_PrintButtonClicked(UseDefault As Boolean)
Report.PrinterSetup Me.hWnd
CRViewer1.PrintReport
End Sub
where Report is...
I created a report that is used to make "Meal Tickets" for my students. The number of meal tickets can be dynamic each time i run the report. The only solution i found to this is to use the OCX and pass .DetailCopies = n where n is the number of tickets i need.
The problem is, the...
I have written two reports using two different ttx files. In my VB6 app i create ADO Recordsets as follows.
Select Case ReportName
Case "Report1"
set report = Report1
rs.open "SQL Statement used to make original ttx", db
Report.Database.SetDataSource rs...
I figured it out. It was a stupid mistake. I selected a ttx file, but didn't "add" it to the report for the datasource. Once i did that, it worked.
I am trying to create a report using a TTX file and passing an ADO recordset to the report.
My data looks something like the following:
User1 Item 1 Item1Cost
User1 Item 2 Item2Cost
User1 Item 3 Item3Cost
User2 Item 1 Item1Cost
User2 Item 2 Item2Cost
User2 Item 3 Item3Cost
and so...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.