Results 1 to 2 of 2

Thread: [RESOLVED] HTML bar chart you can print

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2011
    Location
    New York
    Posts
    12

    Resolved [RESOLVED] HTML bar chart you can print

    I'm developing an SQL report in VB.net by generating HTML. The problem is I can't print the bars I draw with <div> or <span> tags. I've tried enabling Print Background Images in IE but that doesn't work. Besides, I'm trying to minimize user interaction, hence the use of HTML instead of, for example, exporting the data to Access.

    One option I have is using an image and setting its dimensions using the <img> tags. The problem with this is I need to have those images availible to the users. I want this program to be portable, so including a bunch of images with it is a last resort.

    Is there any way for me to draw a rectangle in HTML/javascript/css... SOMETHING that will print 99.9% of the time?

  2. #2

    Thread Starter
    New Member
    Join Date
    May 2011
    Location
    New York
    Posts
    12

    Re: HTML bar chart you can print

    I found a solution. Instead of making the <span> to a specified height and width you set the border width:

    Code:
    <SPAN STYLE='BORDER-LEFT: black 100px solid; DISPLAY: inline-block; HEIGHT: 10px'></SPAN>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width