473,320 Members | 1,856 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,320 software developers and data experts.

Printing Reports

Hi all

I've created an application based on Access 2007 with many reports and now i want to add "Print" and "Print Preview" options to all reports with full power just like other windows based applications(They must have "Page Setup " enhancements).
Now i see Access does not give suitable commands or choices to me except a simple preview and a simple printout option with no Flexibility(Such as sending print to the network Or number of copies,etc) to do the work!

Do you have any suggestion or advise?
Is there a module or code available for this problem?

Thanks And Best Wishes For All
A.M
May 9 '10 #1
1 974
MMcCarthy
14,534 Expert Mod 8TB
Try using the PrintOut method. The printout method works on the active object so you first have to open the report in print preview.

Expand|Select|Wrap|Line Numbers
  1. DoCmd.OpenReport "ReportName", acViewPreview
  2. DoCmd.PrintOut PrintRange, PageFrom, PageTo, PrintQuality, Copies, CollateCopies
  3. DoCmd.Close acReport, "ReportName"
PrintRange can be acPages, acPrintAll or acSelection. Default is acPrintAll
PageFrom is the First page to print. Required if Print range is acPages.
PageTo is the last page to print. Required if Print range is acPages.
PrintQuality can be High, Medium, Low, or Draft. Default is High.
Copies is the number of copies to print. Default is 1.
Collate Copies Yes or No. The default is Yes.
May 10 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: iffy agbim | last post by:
Have 2 intresting Q * Is there a way I can put a print button on my asp that will actually print the current Screen opened. *My asp has an access backend.On my asp page can I have a button that...
0
by: Zentil | last post by:
While printing reports Spooling of print document size get increased into larger size ie the document size is 260kb but on spooling it increased to 268mb. but this is happening in some systems...
2
by: marwa mohamed | last post by:
salamo alikom, i'm working with arachaeological sites database and i want to show the picture of each site in its report.every thing goes fine in the preview of the reports(on screen).But in...
0
by: martinjeffreys | last post by:
Hi I've a number of Access2002 reports with embedded bitmaps. If the printer print quality is set to 'Normal' all prints OK - if 'Fast' only the text appears. I've tried setting the default...
0
by: Mo Sihra | last post by:
hi when I try to print Access reports from VB 6.0 , Access gives some security warning and instead of printing the report, it tries to save it in some .mdi format. Please help me with opening and...
2
by: Hexman | last post by:
Hello All, I'm now getting into the reporting phase of my application development. I need to print not only continuous page reports from a datasource (database, datagridview, listboxes, etc),...
5
by: sulemanzia | last post by:
hi. i am working first time with query and reports. i have created a database. i have reports and query. i have a button in my form by the name of (View reports) if a user clicks on that button it...
1
by: popwhub | last post by:
I am having problems printing some reports from my application that are generated from temporary tables. The application has an Access FE and a SQL Server BE. The current method uses a temporary...
22
Missionary
by: Missionary | last post by:
I need to batch print reports. I've looked at past posts about batch printing, but I don't know visual basic, so I'll need some coaching. I have a report based on a parameter query. I have it...
1
by: kstevens | last post by:
I always have the same issue here and am wondering if anybody else does. I use adobe to print my reports to for ease of sharing with customers, and looking professional while doin it. The code i...
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...
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: 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...
0
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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.