Find these functions and replace the code with the previous code:
// insert a number, increment row,col automatically function InsertNumber( $value ) { if ( $this->ccol == $this->totalcol ) { $this->ccol = 0; $this->crow++; } $this->WriteNumber_pos( $this->crow, $this->ccol, &$value ); $this->ccol++; return; }
// insert a number, increment row,col automatically function InsertText( $value ) { if ( $this->ccol == $this->totalcol ) { $this->ccol = 0; $this->crow++; } $this->WriteText_pos( $this->crow, $this->ccol, &$value ); $this->ccol++; return; }
Whoops, wrong functions =)
// write a Number (double) into row, col function WriteNumber_pos( $row, $col, $value ) { $this->xls_data .= pack( "sssss", 0x0203, 14, $row, $col, 0x00 ); $this->xls_data .= pack( "d", $value ); return; }
// write a label (text) into Row, Col function WriteText_pos( $row, $col, $value ) { $len = strlen( $value ); $this->xls_data .= pack( "s*", 0x0204, 8 + $len, $row, $col, 0x00, $len ); $this->xls_data .= $value; return; }
That works for me!
Cheers! Martin
Thanks man.
Log in to post a comment.
Find these functions and replace the code with
the previous code:
// insert a number, increment row,col automatically
function InsertNumber( $value )
{
if ( $this->ccol == $this->totalcol ) {
$this->ccol = 0;
$this->crow++;
}
$this->WriteNumber_pos( $this->crow, $this->ccol, &$value );
$this->ccol++;
return;
}
// insert a number, increment row,col automatically
function InsertText( $value )
{
if ( $this->ccol == $this->totalcol ) {
$this->ccol = 0;
$this->crow++;
}
$this->WriteText_pos( $this->crow, $this->ccol, &$value );
$this->ccol++;
return;
}
Whoops, wrong functions =)
// write a Number (double) into row, col
function WriteNumber_pos( $row, $col, $value )
{
$this->xls_data .= pack( "sssss", 0x0203, 14, $row, $col, 0x00 );
$this->xls_data .= pack( "d", $value );
return;
}
// write a label (text) into Row, Col
function WriteText_pos( $row, $col, $value )
{
$len = strlen( $value );
$this->xls_data .= pack( "s*", 0x0204, 8 + $len, $row, $col, 0x00, $len );
$this->xls_data .= $value;
return;
}
That works for me!
Cheers!
Martin
Thanks man.