copy XL chart & paste as picture bug

User avatar
stuck
Panoramic Lounger
Posts: 8176
Joined: 25 Jan 2010, 09:09
Location: retirement

copy XL chart & paste as picture bug

Post by stuck »

Unfortunately the source XL workbook and destination Word doc that I will talk about below contain commercially sensitive info so I can't post them and stripping them down makes the problem go away...

I have an XL 2007 workbook that creates a histogram. The left hand end columns are negative values, -4 is the lowest. The right hand column of the histogram is so huge compared to the others I have truncated the vertical axis at +10.

I do not want to link to the source file from Word and ultimately I will 'print' the Word doc to PDF. Experience shows the best quality 'print' of the chart is obtained if it is pasted Word, via Paste Special | Picture (enhanced metafile).

When I do this the histogram looks fine on screen, the left hand column extends down to -4, the extreme right hand column is vertical and truncated at +10.

BUT when I hard copy print (or PDF) this final right hand column is inverted, i.e. it descends from the x-axis and is truncated at -4.

I can work around this bizarre effect by temporarily hacking the source workbook to make the extreme right hand column actually stop at +10, rather than being just formatted to display only as far as +10, meanwhile :scratch: any ideas about what is going on?

Ken

User avatar
stuck
Panoramic Lounger
Posts: 8176
Joined: 25 Jan 2010, 09:09
Location: retirement

Re: copy XL chart & paste as picture bug

Post by stuck »

I've been able to create a dummy XL workbook that contains an example histogram that behaves as I describe above when used as a source doc for Word 2007.

Open it with XL 2007, copy the chart, switch to Word 2007 and on a blank landscape page, Paste Special, Picture (enhanced metafile). The chart should look fine on screen in XL and in Word. Print the Word version and see what happens to the last bar on the right hand end.

:hairout:

Ken
You do not have the required permissions to view the files attached to this post.

User avatar
StuartR
Administrator
Posts: 12606
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: copy XL chart & paste as picture bug

Post by StuartR »

I opened your spreadsheet with Excel 2010, copied the chart, paste special as an enhanced metafile into Word 2010, printed to Acrobat 9 and it came out correctly.
I then repeated this exercise on a PC running Office 2007 and Acrobat 9 and it also worked fine.
StuartR


User avatar
HansV
Administrator
Posts: 78489
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: copy XL chart & paste as picture bug

Post by HansV »

When I use the built-in Save As > PDF option in Word, the chart in the resulting PDF file looks exactly like the one in the Word document and in the Excel workbook...
Best wishes,
Hans

User avatar
stuck
Panoramic Lounger
Posts: 8176
Joined: 25 Jan 2010, 09:09
Location: retirement

Re: copy XL chart & paste as picture bug

Post by stuck »

:hmmn:
This morning I too can't get it to fail when printing to PDF but it does still go wrong if I print a hard copy. Have either of you tried to look at what you get on paper?

Ken

User avatar
StuartR
Administrator
Posts: 12606
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: copy XL chart & paste as picture bug

Post by StuartR »

I have just printed this to my HP Officejet Pro 8500 from Word 2010 on Vista and it came out fine.
StuartR


User avatar
HansV
Administrator
Posts: 78489
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: copy XL chart & paste as picture bug

Post by HansV »

No, I didn't actually print it to paper. Print Preview looked OK though.
Best wishes,
Hans

User avatar
stuck
Panoramic Lounger
Posts: 8176
Joined: 25 Jan 2010, 09:09
Location: retirement

Re: copy XL chart & paste as picture bug

Post by stuck »

:hmmn: again
Yes, print preview looks OK to me too but the print itself is wrong.

I'm using a XP3, Office 2007 (fully patched) and printing across a network to an HP 4650 DTN colour Laserjet. It doesn't matter if the docs are sited on a network drive or my local C: drive.

I'll see if I can scan a hard copy so you can see the output I get.

Ken

User avatar
StuartR
Administrator
Posts: 12606
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: copy XL chart & paste as picture bug

Post by StuartR »

Do you have a different printer you could try?
Have you checked to see if your printer driver is up to date?
StuartR


User avatar
stuck
Panoramic Lounger
Posts: 8176
Joined: 25 Jan 2010, 09:09
Location: retirement

Re: copy XL chart & paste as picture bug

Post by stuck »

Ah ha! Printer drivers, that might be part of the explanation...

I can reproduce the problem on a Laserjet 1200 series but NOT on a Laserjet 1320 nor on a Laserjet 4500.

However, I still think Word 2007 contributes to the issue somewhere along the line because the problem has never come up before in years and years of using Word 2000.

Ken

User avatar
StuartR
Administrator
Posts: 12606
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: copy XL chart & paste as picture bug

Post by StuartR »

The drivers that are specific to your printer haven't been updated since 31 May 2007, but the most recent "Universal Print Driver" on this page is dated 18 Feb 2011, so it might be worth downloading and seeing if it helps.
StuartR


User avatar
stuck
Panoramic Lounger
Posts: 8176
Joined: 25 Jan 2010, 09:09
Location: retirement

Re: copy XL chart & paste as picture bug

Post by stuck »

Thank you Stuart but unfortunately I am a mere mortal and don't have access to the print server so I can't update the driver. I will ask the IT gods upstairs about this but I won't hold my breath.

Ken

User avatar
DaveA
GoldLounger
Posts: 2599
Joined: 24 Jan 2010, 15:26
Location: Olympia, WA

Re: copy XL chart & paste as picture bug

Post by DaveA »

Sounds like the printer is set for reverse printing or the settings within the user's computer is set that way.

Do this happen to all other users computers or just this one?
I am so far behind, I think I am First :evilgrin:
Genealogy....confusing the dead and annoying the living

User avatar
stuck
Panoramic Lounger
Posts: 8176
Joined: 25 Jan 2010, 09:09
Location: retirement

Re: copy XL chart & paste as picture bug

Post by stuck »

The problem occurs on all PCs in the office.

The printers are not set for reverse printing but my understanding of that feature is that it is about the order in which the pages are printed not the way a chart on a page is outputted. Also, this problem occurs even if the doc is a single page doc.

The two scans below illustrate how the histogram prints
1) correctly on two of the printers
2) incorrectly on the other two

Ken
PS Oooo I get another star as this is my 600th post
You do not have the required permissions to view the files attached to this post.