View Issue Details

IDProjectCategoryView StatusLast Update
0005885mantisbtotherpublic2011-09-25 09:43
Reporterpeyn Assigned Toatrol  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionduplicate 
Summary0005885: Export to Excel without column headers
Description

I entered print_all_bug_page.php page and clicked Excel icon. Everything exported great but in Excel's stylesheet there are no column headers :-(

TagsNo tags attached.

Relationships

duplicate of 0003241 closedvboctor On Excel, no column headings display. 

Activities

PatPowerMan

PatPowerMan

2005-07-16 11:58

reporter   ~0010811

Someone wrote in the \print_all_bug_page_excel.php that the IE-Icon allows to see or directly print the same result - I don't think, that this is (still) true.

Anyway: If you would like to see the column-headers in the *.xls-file, you could comment out 2 lines (the isset-condition around line 100...)

<?php
    # titles desactivated for html pages
    if ( $f_type_page != 'html' ) {
        for ( $i=0 ; $i < $field_name_count ; $i++ ) {
            #if ( isset( $t_prefs[$i] ) && ( 1 == $t_prefs[$i] ) ) {
?>
                <td class=xl2316681 style='border-left:none'>
                    <?php 
                        echo lang_get( $t_field_name_arr[$i] )
                    ?>
                </td>
<?php
            #} //if isset
        } //for
    } //if

?>

I'm not sure, why someone likes to make a difference for the headers in html oder xls-output.

emathieu

emathieu

2005-11-25 18:47

reporter   ~0011653

Last edited: 2006-12-28 15:55

Duplicate of 0003241

exk72

exk72

2006-12-13 02:26

reporter   ~0013811

This seems to relate back to print_all_bug_options_page.php is never called.

If it is commented back in, a protected user then has the error that they are unable to change preferences. Was there a reason this was commented out?

If a non-protected user simply views the printer pref page (and makes no changes), then the headings are displayed as expected. Could whatever is happening behind the scenes to cause this be set as the default; ie run edit_printing_prefs() as part of the install process?

print_all_bug_options_inc.php needs to be updated to include target_version