473,323 Members | 1,537 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,323 software developers and data experts.

printreport

Hi

I'm using following code to print a report.

On Error Resume Next
Dim rsetiket As ADODB.Recordset
Dim conn As ADODB.Connection

Set conn = New ADODB.Connection
Set rsetiket = New ADODB.Recordset

If DataEnvironment1.rsetiket.State = 1 Then
DataEnvironment1.rsetiket.Close
End If

conn.Open cnn
rptetiket.PrintReport False
strsql = "DELETE * FROM tbletiket"
rsetiket.Open strsql, conn, adOpenDynamic, adLockOptimistic

I would like to program the default tray of wich it should print.

greetz
Robrecht
Dec 7 '05 #1
0 3031

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: N.Naeem | last post by:
CrystalReport1.PrintReport returns 532 What error is this? thanks
5
by: Randy Harris | last post by:
I'm finding working with PrtDevMode a nightmare. Is there any particular reason that Microsoft didn't simply provide a PrinterName argument for printing a report? That seems like a pretty...
7
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I...
11
by: Grasshopper | last post by:
Hi, I am automating Access reports to PDF using PDF Writer 6.0. I've created a DTS package to run the reports and schedule a job to run this DTS package. If I PC Anywhere into the server on...
8
by: Frank Rizzo | last post by:
I keep hearing this term thrown around. What does it mean in the context of code? Can someone provide a definition and example using concrete code? Thanks.
2
by: Raul Medina | last post by:
I am trying to print the same visual basic report multiple times in my VB 6.0 application using the command <reportObject>.printReport False, rptRangeAllPages. The only thing that differs between...
0
by: AMDRIT | last post by:
We have a series of reports for a new application. As part of the process flow, these reports should be generated and printed at the conclusion of the transaction. Prior to this requirement, each...
0
by: VBCoder | last post by:
When running the program, when I call the PrintReport method on a DataReport having already viewed the report, another copy of the report opens up but with some of the header data missing. Has...
2
by: kutsaratinidor | last post by:
hi to all im currently having problems with datareport in vb6..i assigned a recordset as a datareport's datasource..and telling it to be printed once a button is clicked..my problem is that when...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.