在我机器上好的,但装到客户服务器上打印excel就报错Server Error in '/Forecast' Application. 
--------------------------------------------------------------------------------Object reference not set to an instance of an object. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  Stack Trace: [NullReferenceException: Object reference not set to an instance of an object.]
   Excel.Workbooks.Open(String Filename, Object UpdateLinks, Object ReadOnly, Object Format, Object Password, Object WriteResPassword, Object IgnoreReadOnlyRecommended, Object Origin, Object Delimiter, Object Editable, Object Notify, Object Converter, Object AddToMru, Object Local, Object CorruptLoad) +0
   Forecast.MachineReport.Print(String strTempleName) in C:\Inetpub\wwwroot\Forecast\Report\MachineReport.aspx.vb:55
   Forecast.MachineReport.Page_Load(Object sender, EventArgs e) in C:\Inetpub\wwwroot\Forecast\Report\MachineReport.aspx.vb:33
   System.Web.UI.Control.OnLoad(EventArgs e) +67
   System.Web.UI.Control.LoadRecursive() +35
   System.Web.UI.Page.ProcessRequestMain() +731