aspose word添加样式不起作用

时间:2017-12-12 05:54:21

标签: c# aspose.words

我在doc中添加了一个样式但是如果样式字体名称是在字上安装它不起作用!!! 我的字体是PersianFont

<div class="form-group has-feedback {{ if($errors->has('username')) { 'has-error' } else { '' } }}">

1 个答案:

答案 0 :(得分:1)

$filename = "termekek.xls";

header("Content-Disposition: attachment; filename=\"$filename\"");
header("Content-Type: application/vnd.ms-excel");
echo "\xEF\xBB\xBF"; // UTF8 BOM

$flag = false;
$result = mysqli_query($kapcs, $sql) or die('SQL error - '.mysqli_error($kapcs));

while ($row = mysqli_fetch_assoc($result)) {
    if (!$flag) {
        echo implode("\t", array_keys($row)) . "\r\n";
        $flag = true;
    }
    array_walk($row, __NAMESPACE__ . '\cleanData');
    echo implode("\t", array_values($row)) . "\r\n";
}

exit();