Click here to Skip to main content
15,895,667 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

VB
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.
Posted
Updated 21-Mar-10 19:52pm
v3

1 solution

Make sure you have the appropriate arabic fonts installed on your machine before viewing the document.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900