473,326 Members | 2,680 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,326 software developers and data experts.

report object property 2C whether specific printer or default printer?

MLH
Access 97 Q:

Can I examine a report object property setting in VBA and tell whether
the report is setup to print to a specific printer or to the windows
default printer? You know, the setting you see in the little window
that appears when you open report in design view, click File, Page
Setup, the Page tab (middle one). There's a little 2-radio button
option group there allowing me to choose (1) default printer or
(2) user specific printer.

I'd like to cycle through all my printers and determine the setting
programatically. Ideas?
Sep 24 '06 #1
3 2386
Could you store the value in the Tag property of the report? Or in a
table and grab the value when you are going to print the report by
using a variation of D/TLookup?

Then if you leave the tag value blank, it'll use the default printer.

Sep 25 '06 #2
MLH
On 24 Sep 2006 20:57:50 -0700, pi********@hotmail.com wrote:
>Could you store the value in the Tag property of the report? Or in a
table and grab the value when you are going to print the report by
using a variation of D/TLookup?

Then if you leave the tag value blank, it'll use the default printer.
Thx.

That would work, sure enough, for future reports created. Of course,
so would making sure all reports created henceforth are done so with
the windows default printer selection set.

I'm in need of checking the setting on 50+ reports that have already
been created 'n saved. Done! Had ot use a windoze macro generator
to automate the process and had to watch it throughout the process.

Still wondering if any of you guru - types know how to read the
setting from VBA. I don't thnk it can be done. I've never seen it
done. But then, I've never seen the Q posted on this NG either.
Sep 25 '06 #3

MLH wrote:
On 24 Sep 2006 20:57:50 -0700, pi********@hotmail.com wrote:
Could you store the value in the Tag property of the report? Or in a
table and grab the value when you are going to print the report by
using a variation of D/TLookup?

Then if you leave the tag value blank, it'll use the default printer.
Thx.

That would work, sure enough, for future reports created. Of course,
so would making sure all reports created henceforth are done so with
the windows default printer selection set.

I'm in need of checking the setting on 50+ reports that have already
been created 'n saved. Done! Had ot use a windoze macro generator
to automate the process and had to watch it throughout the process.

Still wondering if any of you guru - types know how to read the
setting from VBA. I don't thnk it can be done. I've never seen it
done. But then, I've never seen the Q posted on this NG either.
Yes, we all do. But we're sick of your pathetic laziness and stubborn
refusal to take any advice whatever. So we're keeping quiet.

Sep 25 '06 #4

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

Similar topics

2
by: Bob Quintal | last post by:
I have a report that prints a single record. Normally it's enter one record, then print it. This works great. New requirement: Each record needs to be printed to an individual ..pdf file from...
0
by: Esmee | last post by:
Hi there, I have created an Access 2002 db which contains several reports. Some reports need to be printed on a Laserjet and others on a Labelprinter. One of my clients wants to be able to print...
15
by: Mark C | last post by:
All, I have exhaustingly been looking through the newsgroups in search of a way to systemically output an Access 97 report to a pdf file using the full version of Adobe Acrobat. I want the user...
3
by: giloosh99 | last post by:
Hello I have a report that needs to printed by a specific printer rather than the computers default printer? Is there a way to dynamically choose a specific printer to print a report through VBA...
12
by: Connor T | last post by:
Hi, I have a crystal report embedded in a viewer. How / Where can I set a property to make it default to landscape orientation? Rgds, Dan
0
by: Tom Hoogeboom | last post by:
I am trying to give my clients the option to preview a Crystal report using the Crystal ReportViewer control on a web page, or sending the report directly to their default printer, so far without...
6
by: MLH | last post by:
I am unsure how to do this. I want this tray to be used for certain print jobs - jobs that will prompt me to load the bypass tray with sheet labels. How to force this? Dunno. Its the HP LaserJet...
12
by: mvsguy | last post by:
I'm an Access noob and apologize if I'm asking a stupid question. The problem is that I'm unable to design/preview reports on a database. How do I go about fixing this? Background - A user has...
10
by: Snoopy33 | last post by:
I have a DB that I developed on access XP (2002) and deployed over a year ago. No one has had problems printing any of the reports within the DB until we started loading 2007 on new computers. ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
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: 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: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.