+ Reply to Thread
Results 1 to 8 of 8

Improve quality of exported chart

  1. #1
    Forum Contributor
    Join Date
    01-21-2005
    Location
    Colorado
    MS-Off Ver
    2000,2003,2007
    Posts
    481

    Improve quality of exported chart

    I was working with automatically exporting the contents of a textbox to an image file and found this post which I was able to modify slightly for my purposes.

    http://www.excelforum.com/excel-prog...ml#post1982405

    Is it possible to improve the quality of the output image. I need to print out the resulting image and the quality of the image this method creates is too poor for my purposes.

    Thank you for any help

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello bhofsetz,

    I clicked on the link and the system can't find it. Recheck that it is valid link.

    Sincerely,
    Leith Ross

  3. #3
    Forum Contributor
    Join Date
    01-21-2005
    Location
    Colorado
    MS-Off Ver
    2000,2003,2007
    Posts
    481
    Sorry,

    Here's the correct link.

    http://www.excelforum.com/excel-prog...ml#post1982405

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436
    Can you post example of what you are trying to export.

    You can change the image type but I'm not sure you can adjust the quality.
    Cheers
    Andy
    www.andypope.info

  5. #5
    Forum Contributor
    Join Date
    01-21-2005
    Location
    Colorado
    MS-Off Ver
    2000,2003,2007
    Posts
    481
    Thanks for taking a look.

    I am trying to output the contents of a textbox to an image file.
    *.bmp, *.jpg, *.gif
    The exact image file type doesn't matter as long as I can use this as a header image for an Excel 2007 file.

    TBtoImage.xls

    TBtoImage10pt.bmp

    The reason I am using this approach is that the information I need to put in the header exceeds the 256 character limit imposed by Excel. I have investigated other options for getting the information into the header, i.e. using the first several rows as a "header" on the sheet, etc. But overall this will be the most desirable.

    What I have found is that if I export the textbox to an image file with the font size I want in my header. The use the resulting image in the header the printout is extreemly poor quality (grainy, dark shadows, etc.).
    One intermediate solution I have come up with is to first increase the font size in the text box five times lager than I want in the print out. Export the textbox to an image. Select the image for my header and adjust the image size to 20% of original.
    This seems to work reasonably well but is a bit cumbersome and I was looking for a more straightforward solultion.

    Thanks again for any help

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436
    Try this code, based on Stephen Bullen's PastePicture example.
    http://www.oaltd.co.uk/Excel/Default.htm

    Exports the textbox as bmp and uses newly created file in Center Header.
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    01-21-2005
    Location
    Colorado
    MS-Off Ver
    2000,2003,2007
    Posts
    481
    Thanks for the link and file Andy. That looks like a more straightforward way to do what I'm after. I did find that I still needed to increase the font size of the textbox text before exporting it and then showing at 10% of original size to get better quality in the printout. However this is all accomplished easily by slightly modifying the code in the workbook you attached. I have attached my slight modification of that code and file here. I also found that if you have different font sizes in the textbox it will only work for the font size of the first text in the box. However it will maintain other text formatting such as font style or bold.

    Thanks again for the help.

    TBtoImage2.xls

  8. #8
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436
    Setting the Fontsize will size all characters.
    If you want different font sizes you will need to apply the change to specifiec characters.

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. chart template that updates when data changed
    By debl in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-24-2008, 05:32 PM
  2. Unexpected Behavior from Worksheet to Unembeded Chart
    By gwright1 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-01-2008, 06:47 AM
  3. PivotChart filtering and chart type problem
    By php219 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 11-16-2007, 03:55 PM
  4. combination chart
    By dbarrow9476 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-06-2007, 07:43 AM
  5. Going insane!
    By kik in forum Excel - New Users/Basics
    Replies: 10
    Last Post: 01-31-2007, 08:21 AM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1