Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Chart.Export creates zero byte GIF and hangs on server

[note: I posted this on excel.interopoledde, then noticed
that this group seems to be where all the action is.
Sorry for the double post.]

Doing Excel interop in C# ASP.Net. The following line
works fine on several PCs, but not on the production
environment:

MyChart.Chart.Export(myFileName, null, null);

This creates a GIF image of the chart, except on the
server where a zero length GIF file is created and the
ASP.Net app basically hangs up.

Does anyone have any ideas why this straight forward piece
of code would not work? One more piece of info... I am
able to successfuly save the worksheet into the same
folder on the web site.

Thanks,

AB


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 90
Default Chart.Export creates zero byte GIF and hangs on server

Just a thought, could you export the chart locally, then copy it to the
server?

- Jon
-------
Jon Peltier, Microsoft Excel MVP
http://www.geocities.com/jonpeltier/Excel/index.html
_______

AB wrote:

[note: I posted this on excel.interopoledde, then noticed
that this group seems to be where all the action is.
Sorry for the double post.]

Doing Excel interop in C# ASP.Net. The following line
works fine on several PCs, but not on the production
environment:

MyChart.Chart.Export(myFileName, null, null);

This creates a GIF image of the chart, except on the
server where a zero length GIF file is created and the
ASP.Net app basically hangs up.

Does anyone have any ideas why this straight forward piece
of code would not work? One more piece of info... I am
able to successfuly save the worksheet into the same
folder on the web site.

Thanks,

AB



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Chart.Export creates zero byte GIF and hangs on server

Jon, thanks for replying.

At this point we have to do it on the web server.

This problem is very bizzare. All of my interop code is
working fine. Only the Chart.Export does not work. I did
a work around where I call a macro in the sheet to export
the chart. Now this work around works on the staging
server, but get this... Neither approach works in
production!

In production all of the interop code works fine. But
neither a call to Chart.Export or a Excel macro that does
a Chart.Export will produce a GIF. And in the case of the
production server, we don't even get a zero byte .GIF file.

Any ideas?

Thanks,
AB

-----Original Message-----
Just a thought, could you export the chart locally, then

copy it to the
server?

- Jon
-------
Jon Peltier, Microsoft Excel MVP
http://www.geocities.com/jonpeltier/Excel/index.html
_______

AB wrote:

[note: I posted this on excel.interopoledde, then

noticed
that this group seems to be where all the action is.
Sorry for the double post.]

Doing Excel interop in C# ASP.Net. The following line
works fine on several PCs, but not on the production
environment:

MyChart.Chart.Export(myFileName, null, null);

This creates a GIF image of the chart, except on the
server where a zero length GIF file is created and the
ASP.Net app basically hangs up.

Does anyone have any ideas why this straight forward

piece
of code would not work? One more piece of info... I am
able to successfuly save the worksheet into the same
folder on the web site.

Thanks,

AB



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 50
Default Chart.Export creates zero byte GIF and hangs on server

It all sounds quite similar to the problem described here :

http://www.google.com.au/groups?hl=e...3D%2 6hl%3Den
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Chart.Export creates zero byte GIF and hangs on server

Thanks for the info Vic. Sure sounded like the same
problem but turns out it was something else!

In case anyone is interested the problem was with the
Office installation. The graphics filters were not
installed on the web servers!

-----Original Message-----
It all sounds quite similar to the problem described

here :

http://www.google.com.au/groups?hl=en&lr=&ie=UTF-

8&threadm=utq4Z78oDHA.1724%
40TK2MSFTNGP10.phx.gbl&rnum=1&prev=/groups%3Fas_q%3Dchart%
2520export%2520registry%26safe%3Dimages%26ie%3DISO-8859-1%
26as_ugroup%3Dmicrosoft.public.excel.*%26lr%3D%26h l%3Den
.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Export for Quickbooks to Excel creates a HUGE file Bill Board Excel Discussion (Misc queries) 4 February 5th 09 12:00 AM
How to export selected columns to SQL Server without programming? aushknotes Excel Discussion (Misc queries) 0 August 10th 08 12:47 AM
Export from Access/SQL Server JIM Excel Discussion (Misc queries) 0 August 20th 06 08:09 PM
open of xls fil on FTP server hangs and never opens Ralph @ Randa Excel Discussion (Misc queries) 1 April 11th 06 08:13 PM
Export Excel to SQL Server Tom Y Excel Programming 2 August 7th 03 06:02 PM


All times are GMT +1. The time now is 10:52 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"