我是想调用本机的Excel程序制作报表,和其他应用程序一样,本机要装Excel.

解决方案 »

  1.   

    你加个头吧。
    header那里。       header("Content-type:application/vnd.ms-excel");
    呵呵,,,,这个头可以换,,,声明是啥就是啥呢。。
    [email protected]
    如下PHP程序可做参考呵<?
           header("Content-type:application/vnd.ms-excel");
           header("Content-Disposition:filename=test.xls");
           echo "test1\t";
           echo "test2\t\n";
           echo "test1\t";
           echo "test2\t\n";
           echo "test1\t";
           echo "test2\t\n";
           echo "test1\t";
           echo "test2\t\n";
           echo "test1\t";
           echo "test2\t\n";
           echo "test1\t";
           echo "test2\t\n";
       //想睡了,可心里还惦着其它事情!我的目标,我的人生,归何方!?>