Sunday, 28 April 2013

How can i extract the formated word(bold,italic,underline,font,color etc) from the msword file.? | VB.Net Interview Questions

using CommonDialog class
Eg:
the code to invoke the default font dialog box by using the FontDialog control is given below:
private sub displayfont_click(byval sender as system.object,byval e as
system.eventargs) handles displayfont.click fontdialog.showDialog()
textbox1.font=fontdialog1.font
end sub
the code to invoke the default font dialog box by instantiating the
fontdialog class is:
dim fdialog as new fontdialog()
private sub displayfont_click(byval sender as system.object,byval e as
system.eventargs) handles displayfont.click
fdialog.showDialog()
textbox1.font=fontdialog1.font
end sub

No comments: