Grid Lines in Crystal Reports

Posted on 2007-07-23
Last Modified: 2008-02-01
Hello all,

I am trying to create a grid with lines.  My header Textboxes have a background color.  I created vertical and horizontal lines to mimic grid lines.  I tried to use borders of textboxes to do this but could not get them to line up correctly.  The problem I am having is make the background color flush with the lines.  I able to make it look good but if you zoom in or out in viewer then it does not the background color does not stay flush with the lines and looks like crap.  Also if I print report it looks fine but if I export to pdf it defintly looks like crap.  Lines are longer then others and textboxes to big, shifted.  Need help.  I been at this for too long.  Any other way I should be going at this?  

Oh yeah I'm using Crystal Reports for VS.NET 2005.

Question by:boricua1213
    LVL 42

    Accepted Solution

    Rather than using the borders of textboxes, you can simply draw lines on the report...  Rt click on an empty section and select insert -> line.  Draw the line from the bottom of the page header to the top of the report footer - this way the line will expand vertically along with the size of the details section.
    LVL 42

    Expert Comment

    Another option if the columns are always the same size.  This isn't flexible but will give you great looking results...

    Create a page-size image using any image editing software.  Draw the grid lines on the image as needed and you can also add background shading, etc.  Insert this image into the page header of your report.  In the section expert for the page header, click the option to "Underlay Following Sections".  This will use the image file as a background for the entire page - you can then line up your fields with the background image to get the appearance you want and it will typically translate well to both print and pdf.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
    Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now