Results 1 to 4 of 4
  1. #1
    crowegreg is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Posts
    398

    Converting from a pre-printed form

    I've converted my customer from Access 2003 to Access 2010. In doing so, we've lost the function of a dot matrix printer. I previously designed a report that printed on pre-printed forms. The pre-printed forms had column lines separating each field being printed. I've added vertical lines in the detail area separating each data field. All the lines are aligned as needed. My problem is I need the lines to extend all the way to the footer of the report. Is this possible?




    Thanks in advance!!

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Review: http://msdn.microsoft.com/en-us/libr...ffice.11).aspx

    This code works for me. The unit of measure is TWIPS, 1 inch = 1440 TWIPS. The lines will draw only in PrintPreview or direct to printer:

    Private Sub Report_Page()
    Me.Line (1.5 * 1440, 100)-(1.5 * 1440, 14000), vbRed
    Me.Line (4.5 * 1440, 100)-(4.5 * 1440, 14000), vbRed
    Me.Line (6.5 * 1440, 100)-(6.5 * 1440, 14000), vbRed
    End Sub

    You can use line objects on the report to help you get the position measures for the code.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    crowegreg is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Posts
    398
    Very nice. Thank you!!

    I pasted your code and the code from the reference page.

    Can you help me get started? My first line has these settings within the properties:
    Top: 3.125I
    Left: .7917
    Length: .4

    How do insert these into your line of code?
    Last edited by crowegreg; 07-02-2014 at 07:51 AM. Reason: Need more assistance

  4. #4
    crowegreg is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Posts
    398
    I figured it out. Here's my final code:
    Me.Line (0.7917 * 1440, 4500)-(0.7917 * 1440, 12595), vbBlack
    Me.Line (1.9333 * 1440, 4500)-(1.9333 * 1440, 12595), vbBlack
    Me.Line (2.325 * 1440, 4500)-(2.325 * 1440, 12595), vbBlack

    Thanks again for your assistance!!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Code okay with preview but not when printed
    By GraeagleBill in forum Programming
    Replies: 6
    Last Post: 09-08-2013, 06:41 PM
  2. Missing Data when printed to pdf
    By Dalan in forum Access
    Replies: 3
    Last Post: 10-19-2012, 06:46 AM
  3. Prevent buttons from being printed
    By Tvanduzee in forum Reports
    Replies: 4
    Last Post: 09-19-2012, 01:46 PM
  4. Replies: 2
    Last Post: 06-20-2012, 02:21 AM
  5. Total records printed
    By LesleyA in forum Queries
    Replies: 3
    Last Post: 08-04-2008, 03:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums