473,503 Members | 1,650 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Print margins not being honored in reports

3 New Member
This database has existed for years. In the past the reports always had 0.25" margins. Recently our president asked for some changes that required 0.00" margins on multiple reports. The full report width was changed to 8.5" to print on letter, and the margins were reduced to 0. All report pages are generated as PDF with "acOutputReport,"",acFormatPDF". This works fine on my computer with the ACCDB or ACCDE file. The database is split frontend and backend. All user have their own frontend (that is copied from the ACCDE file on the server (which is the ACCDE file that works fine for me). When another user prints a report they get the warning that the page width is wider than the page (blah, blah, blah). Any idea why the width/margin is not setup correctly for the co-worker?
Mar 8 '17 #1
2 1463
jforbes
1,107 Recognized Expert Top Contributor
I haven't spent to much time on this subject, but from what I've seen, Access will save the name of the last printer that the Report was formatted for during Design time. When the Report is Previewed, it will see if the Current Default Printer is the same as the Printer that was saved with the Report. When they don't match, Access will reset certain things to match the Default printer, as best as it can, like the Margins.

You might try adding this to the Report's OnOpen Event, I haven't tried it... It might work:
Expand|Select|Wrap|Line Numbers
  1. Me.Printer.TopMargin = 0
  2. Me.Printer.BottomMargin = 0
  3. Me.Printer.LeftMargin = 0
  4. Me.Printer.RightMargin = 0
Mar 8 '17 #2
crayhouse
3 New Member
I tried this approach, and it did not work for me. I did determine that it was the setting for the default printer. I set the "Default Printer" in page setup for the report. When I print the report on my computer, my default printer is a PDF printer (I rarely create a piece of paper). The co-workers print to paper daily, and have their default printers set to actual printers. Their actual printer does not have the capability of using a margin of "0" for any of the margins, so it sets the physical margin at the minimum for the printer...even though the report is create with acFormatPDF.

Unfortunately if I select a printer that the user does not have access to then that causes problems of its own. I do wish that Access could understand that acFormatPDF did not require a printer, and could ignore which printer to look at to determine if the settings would produce a useful report.
Mar 8 '17 #3

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

Similar topics

4
2268
by: Wendy Elizabeth | last post by:
I would like to know how to print a crystal report that was generated in the ..NET framework using a Visual Basic.NET web application and/or a Visual basic.NET windows application. When crystal...
2
2608
by: Greg | last post by:
I have 2 reports that are almost the same one is for internal use and the other is for the customer. The Internal report has a few extra fields then the customer report. The customer report has a...
0
1762
by: John Dalberg | last post by:
I need to set IE's print left margin to a value smaller than the default 0.75 programmaticallly. I did some research and found some info about print templates on MSDN. However the info is too...
1
1169
by: bafidi | last post by:
i want links to read where it teachs me to print without cristal reports please help
1
2815
by: scrawnyguns | last post by:
There's probably something easy I'm missing here. When I run a print operation in my program (Microsoft VB.Net Form) I have some code that sets the print margins so that it leaves a nice gap,...
7
20670
by: Mark | last post by:
Hi, I am creating application in VB 2005. and when I print report it adds extra 0.45 cm margin on left and top, and the reason for this is physical margins of printer. Is it possible to change...
1
2282
by: mehdi | last post by:
Hi folks, 1. Is there any equivalent to the "DocumentProperties" Win32 API in C#? 2. How am I supposed to retrieve the user-selected margins from a given Printer Properties dialog? (I got a...
1
2300
by: Mango | last post by:
I'm trying to print some text in a very specific position on a page, so that it will show through the window of an envelope when folded. This is easy to do, as long as the browser's print margins...
0
1438
by: Jason7899 | last post by:
hi, i use the crystal report for creat reports and print all that i want in vb or vb.net now i looking for a such like crystal report for use in php or html all data is retrieve from a mysql...
1
1346
by: sarika81286 | last post by:
how to disable print option of reports in jsp/java servlet program . if any body have any idea please help...
0
7083
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7278
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7328
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7456
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5011
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3166
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3153
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
379
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.