[LON-CAPA-cvs] cvs: loncom /interface/spreadsheet Spreadsheet.pm

matthew lon-capa-cvs@mail.lon-capa.org
Mon, 08 Dec 2003 19:43:03 -0000


matthew		Mon Dec  8 14:43:03 2003 EDT

  Modified files:              
    /loncom/interface/spreadsheet	Spreadsheet.pm 
  Log:
  Report errors in calculation even when outputing in Excel or CSV format.
  
  
Index: loncom/interface/spreadsheet/Spreadsheet.pm
diff -u loncom/interface/spreadsheet/Spreadsheet.pm:1.31 loncom/interface/spreadsheet/Spreadsheet.pm:1.32
--- loncom/interface/spreadsheet/Spreadsheet.pm:1.31	Fri Nov 21 16:51:28 2003
+++ loncom/interface/spreadsheet/Spreadsheet.pm	Mon Dec  8 14:43:03 2003
@@ -1,5 +1,5 @@
 #
-# $Id: Spreadsheet.pm,v 1.31 2003/11/21 21:51:28 matthew Exp $
+# $Id: Spreadsheet.pm,v 1.32 2003/12/08 19:43:03 matthew Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1437,6 +1437,10 @@
     my $self = shift;
     my ($r) = @_;
     my $connection = $r->connection();
+    #
+    $r->print($self->html_report_error());
+    $r->rflush();
+    #
     $r->print("<h2>".&mt('Preparing Excel Spreadsheet')."</h2>");
     #
     # Create excel worksheet
@@ -1479,6 +1483,10 @@
     my $self = shift;
     my ($r) = @_;
     my $connection = $r->connection();
+    #
+    $r->print($self->html_report_error());
+    $r->rflush();
+    #
     my $csvdata = '';
     my @Values;
     #