Click here to Skip to main content
15,897,891 members
Home / Discussions / C#
   

C#

 
QuestionImage to binary Pin
tanweer1-Sep-09 0:27
tanweer1-Sep-09 0:27 
AnswerRe: Image to binary Pin
JoeSharp1-Sep-09 0:45
JoeSharp1-Sep-09 0:45 
AnswerRe: Image to binary Pin
Md. Marufuzzaman1-Sep-09 1:47
professionalMd. Marufuzzaman1-Sep-09 1:47 
QuestionTo import .Doc file into rich text box in c# Pin
tanweer1-Sep-09 0:22
tanweer1-Sep-09 0:22 
AnswerRe: To import .Doc file into rich text box in c# Pin
Hristo-Bojilov1-Sep-09 0:25
Hristo-Bojilov1-Sep-09 0:25 
GeneralRe: To import .Doc file into rich text box in c# Pin
tanweer1-Sep-09 0:31
tanweer1-Sep-09 0:31 
GeneralRe: To import .Doc file into rich text box in c# [modified] Pin
Hristo-Bojilov1-Sep-09 0:43
Hristo-Bojilov1-Sep-09 0:43 
GeneralRe: To import .Doc file into rich text box in c# Pin
smshepard2-Sep-09 2:55
smshepard2-Sep-09 2:55 
You can import word doc into richtextbox with following:

private void PreviewRecord(object sender, EventArgs e)
{
string str;

OpenFileDialog openfiledg = new OpenFileDialog();
openfiledg.Filter = "Word Document (*.doc)|*.doc|All Files (*.*)|*.*";
openfiledg.FilterIndex = 2;
openfiledg.RestoreDirectory = true;
if ((openfiledg.ShowDialog() == DialogResult.OK && openfiledg.FileName.Length > 0))
{
IDataObject Data1;
object nullobj, file;
Microsoft.Office.Interop.Word.Document wordDoc;
Microsoft.Office.Interop.Word.ApplicationClass WordApp = new Microsoft.Office.Interop.Word.ApplicationClass();
nullobj = System.Reflection.Missing.Value;
file = openfiledg.FileName;
wordDoc = WordApp.Documents.Open(ref file, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj);

wordDoc.ActiveWindow.Selection.WholeStory();
wordDoc.ActiveWindow.Selection.Copy();
Data1 = Clipboard.GetDataObject();
str = Data1.GetData(DataFormats.Rtf).ToString();
richTextBox1.Rtf = str;
wordDoc.Close(ref nullobj, ref nullobj, ref nullobj);

}
}
QuestionSlow in displaying Crystal report Pin
sharad Pyakurel31-Aug-09 23:59
sharad Pyakurel31-Aug-09 23:59 
AnswerRe: Slow in displaying Crystal report Pin
Jacobb Michael1-Sep-09 0:49
Jacobb Michael1-Sep-09 0:49 
GeneralRe: Slow in displaying Crystal report Pin
sharad Pyakurel1-Sep-09 1:21
sharad Pyakurel1-Sep-09 1:21 
QuestionIndexers Question Pin
Programm3r31-Aug-09 23:49
Programm3r31-Aug-09 23:49 
AnswerRe: Indexers Question [modified] Pin
Keith Barrow1-Sep-09 0:01
professionalKeith Barrow1-Sep-09 0:01 
GeneralRe: Indexers Question Pin
Programm3r1-Sep-09 0:13
Programm3r1-Sep-09 0:13 
Questionhow to export table in my word document to xml Pin
dotgnu31-Aug-09 23:30
dotgnu31-Aug-09 23:30 
AnswerRe: how to export table in my word document to xml Pin
Md. Marufuzzaman1-Sep-09 2:53
professionalMd. Marufuzzaman1-Sep-09 2:53 
QuestionSearch Active Directory Pin
Ferudun Atakan31-Aug-09 23:27
Ferudun Atakan31-Aug-09 23:27 
AnswerRe: Search Active Directory Pin
SeMartens31-Aug-09 23:28
SeMartens31-Aug-09 23:28 
AnswerRe: Search Active Directory Pin
Arun Jacob31-Aug-09 23:46
Arun Jacob31-Aug-09 23:46 
Questionone click all records update datagridview Pin
cursedsw31-Aug-09 23:21
professionalcursedsw31-Aug-09 23:21 
AnswerRe: one click all records update datagridview Pin
Jacobb Michael31-Aug-09 23:34
Jacobb Michael31-Aug-09 23:34 
GeneralRe: one click all records update datagridview Pin
cursedsw31-Aug-09 23:42
professionalcursedsw31-Aug-09 23:42 
GeneralRe: one click all records update datagridview Pin
Jacobb Michael1-Sep-09 0:04
Jacobb Michael1-Sep-09 0:04 
GeneralRe: one click all records update datagridview Pin
cursedsw1-Sep-09 0:11
professionalcursedsw1-Sep-09 0:11 
Questionparameter in Event Handler Pin
Saiyed Alam31-Aug-09 23:13
Saiyed Alam31-Aug-09 23:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.