Results 1 to 3 of 3
  1. #1
    Alex Motilal is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Nov 2008
    Location
    Coimbatore, India
    Posts
    192

    Column Lines

    Hello everyone,



    In Reports I am using the following code on the Print Event to draw vertical column lines:

    Me.ScaleMode = 1
    Me.ForeColor = 0

    Me.Line (0 * 1440, 0)-(0 * 1440, 14400)
    Me.Line (2 * 1440, 0)-(2 * 1440, 14400)
    Me.Line (4.16666 * 1440, 0)-(4.16666 * 1440, 14400)
    Me.Line (5.08333 * 1440, 0)-(5.08333 * 1440, 14400)
    Me.Line (6 * 1440, 0)-(6 * 1440, 14400)
    Me.Line (7 * 1440, 0)-(7 * 1440, 14400)

    The above code draws Solid Line of 1 Point. Is it possible to draw Solid Lines of different thickness (say 2 Point) and also is it possible to draw doted lines or dashes?

    With thanks,
    Alex

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

    Set the DrawWidth, DrawStyle, DrawMode properties before the lines you want those properties to influence. Like:
    Me.DrawWidth = 2
    Me.DrawStyle = 3
    Me.Line (0 * 1440, 0)-(0 * 1440, 14400)
    Me.Line (2 * 1440, 0)-(2 * 1440, 14400)
    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
    Alex Motilal is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Nov 2008
    Location
    Coimbatore, India
    Posts
    192

    Column Lines

    Thank u June7,
    Your solution works fine.
    Alex

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

Similar Threads

  1. Curved Lines
    By Rawb in forum Reports
    Replies: 3
    Last Post: 10-24-2011, 07:20 AM
  2. Lines duplicated with Queries
    By mari_hitz in forum Queries
    Replies: 3
    Last Post: 10-17-2011, 06:38 AM
  3. Querying id by having criteria in two lines
    By ahunter488 in forum Queries
    Replies: 3
    Last Post: 06-21-2011, 05:21 PM
  4. Creating Multiple Lines per Member
    By SecretGeek in forum Access
    Replies: 2
    Last Post: 08-20-2010, 06:19 AM
  5. Replies: 1
    Last Post: 04-15-2010, 02:07 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