文件流显示“?".尝试在Word中打开时,在vb.net中获取阿拉伯字体? [英] File stream is showing "?" for arabic fonts in vb.net when we are try to open in word?

查看:111
本文介绍了文件流显示“?".尝试在Word中打开时,在vb.net中获取阿拉伯字体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用一个小型应用程序,该应用程序搜索并检查数据库中可用的数据.如果可用,则可以以".doc"格式查看文档,其中阿拉伯字体显示为?".我必须要做的.这是我用于查看文档的代码

We are using a small application which searches and checks for the data available in database. If it is available then the document can be viewed in ".doc" format where the font for arabic showing "?". What i have to do. this is code which i am using for document viewing is

Dim fileData As Byte()
fileData = Encoding.ASCII.GetBytes(strstream)
Dim sTempFileName As String = Application.StartupPath & "\" & sfilename
If Not fileData Is Nothing Then

End If
'Read image data into a file stream
Using fs As New FileStream(sfilename, FileMode.OpenOrCreate, FileAccess.Write)
fs.Write(fileData, 0, fileData.Length)
'Set image variable value using memory stream.
fs.Flush()
fs.Close()
End Using

'Open File
Process.Start(sfilename)




我已经在系统中安装了各种阿拉伯字体,但仍然存在相同的问题.请帮助我.




I have already installed in my systema all the kinds of arabic fonts but still it is having same problem . please help me.

推荐答案

在查看文档之前,请确保在计算机上安装了适当的阿拉伯字体.
Make sure you have the appropriate arabic fonts installed on your machine before viewing the document.


这篇关于文件流显示“?".尝试在Word中打开时,在vb.net中获取阿拉伯字体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆