-1

I have a doc file with picture and table and want to show it in C# form. when i load it in richtextbox the table is not showing correctly

how can i solve this problem ?

svick
  • 236,525
  • 50
  • 385
  • 514
SajjadZare
  • 2,487
  • 4
  • 38
  • 68
  • 4
    You have to be more detailed. What GUI library are you using? WinForms, WPF or something else? How do you load the doc in richtextbox? What do you expect to see and what do you actually see? – svick Aug 13 '11 at 15:44

1 Answers1

2

A real doc file much more than rtf which is the format the richtextbox understands.

IF you really need to display (perhaps edit or convert to PDF...) a doc file then you will need to use some 3rd-party component like Aspose.Words...

Another option - although only for desktop applications and requiring Word to be installed would be to use Office Automation - see

http://msdn.microsoft.com/en-us/library/dd264733.aspx
C# office 2010 automation
http://www.codeproject.com/KB/office/ms_office_automation.aspx

Community
  • 1
  • 1
Yahia
  • 69,653
  • 9
  • 115
  • 144