Originally posted by lilelvis2000
View Post
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Reply to: Access 97 - Report Printers
Collapse
You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:
- You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
- You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
- If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Logging in...
Previously on "Access 97 - Report Printers"
Collapse
-
Originally posted by MrNoMotivation View PostRight. I've tried the code in a later version of Access and it's still coming up with the same result. Any ideas please?
The property returns a Windows structure...it is mentioned in the final link I believe. So what you need to do is create a structure identical to it in VBA and copy the printer info into it. Once there you can access the proper member which will be the printer name.
https://tron.megaspaz.net/stuff/MyWo.../devnames.html
http://www.eggheadcafe.com/forumarch...st26075847.asp
both links should help you out.
Also.....tada! in access 2002 (XP) there is a new Printer object. on the report there will be an attribute named "Printer". That object contains all the details you need.
Phew.....that'll be £150 please!
Good luck.Last edited by lilelvis2000; 10 December 2008, 16:55.
Leave a comment:
-
Right. I've tried the code in a later version of Access and it's still coming up with the same result. Any ideas please?
Leave a comment:
-
still wouldn't solve the problem I've encountered.Originally posted by xoggoth View PostDid some Access 2004 (? I think) work last year. Not that different to 97 in many areas, upgrade would be fairly easy I would have thought.
Leave a comment:
-
Did some Access 2004 (? I think) work last year. Not that different to 97 in many areas, upgrade would be fairly easy I would have thought.
Leave a comment:
-
Originally posted by lilelvis2000 View Postsigh....
http://support.microsoft.com/kb/129397
and
http://www.pcreview.co.uk/forums/thread-1632295.php
and....
http://www.mvps.org/access/reports/rpt0009.htm
and...
http://msdn.microsoft.com/en-us/libr...ffice.10).aspx
surely you can see that it is not straight text and will need decoding.
Good luck
surely it should be straight text. Thanks for all the links. I looked at just about all of these before creating the thread. Can't see them mention decoding anywhere.
Leave a comment:
-
sigh....
http://support.microsoft.com/kb/129397
and
http://www.pcreview.co.uk/forums/thread-1632295.php
and....
http://www.mvps.org/access/reports/rpt0009.htm
and...
http://msdn.microsoft.com/en-us/libr...ffice.10).aspx
surely you can see that it is not straight text and will need decoding.
Good luck
Leave a comment:
-
I agree it does belong in the bin.
However, the client's attitude is 'if it works don't touch it'.
The client is always right....... as long as they pay the invoice.
Anyway I've tried the code on later versions of Access and it still produces the same results.
Leave a comment:
-
Hang on, is it......?Originally posted by MrNoMotivation View PostNo one motivated to solve this query?
Is this thread doomed?
No, forget it.
The deafening silence is telling you that Access 97 belongs in the dustbin of history.
Upgrade to the latest and greatest MS Access or better still put the data in a proper database and build a proper front end and reporting system.
Leave a comment:
-
No one motivated to solve this query?
Is this thread doomed?
Leave a comment:
-
Access 97 - Report Printers
Hi All,
wondering if one of you can help me.
I've written this piece of code in Access 97 (don't ask
) and it's not working. It should simply display in the debug window the name of the printers for the specified report.
Eventually I want it to loop round to find the printers for all the reports in the database.
Any ideas?
Cheers
--Code--
Function LocatePrinter()
Dim rpt1 As Report
Dim rptToChange As String
rptToChange = "Report1"
DoCmd.OpenReport rptToChange, acViewDesign
Set rpt1 = Reports(rptToChange)
Debug.Print (rpt1.PrtDevNames)
End Function
----------------------------------------------------
--Result
* ???? ????????????????????2
---------------------------------Tags: None
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers

Leave a comment: