0

I am using dataenvironment for generating datareport using the following code

Unload DataEnvironment1
DataEnvironment1.Connection1 = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\htm.mdb;Persist Security Info=False;Jet OLEDB:Database Password=pushhtm"
DataEnvironment1.Command1 Trim(op)
datareport1.Show


it is working well. I am using a form to input a record and use a print button with above code to print that record on a page. First I enter a record then click on print the inputted recrd is appear on the datarecord. But when I use

Datareport1.printreport false

it prints directly but not the current inputted record it print the record which i inputted first time. What is the problem can anyone solve my problem

3
Contributors
3
Replies
4
Views
8 Years
Discussion Span
Last Post by dspnhn
0

you mean you input a record and it print directly. please use this code: printer.print Text1.text

0

I want to print using the datareport.
Is there any method to resolve the problem
Please reply

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.