Hi ! I want to read the text shown inside a word document to a string variable. The problem is the normal appraoch FileInfo f = new FileInfo(loadedPage); StreamReader s = f.OpenText(); myvar = s.ToString(); which is used to read normal text files will not work with word. Thanx !
Amauw Scritz
Posts
-
Read text in Word -
Call FlashSorry my mistake I want to call a *.swf file... not an *.exe file. Thanx for the reply.
-
Call FlashSorry my mistake I want to call a swf not and exe .... Thanx for the reply
-
Call FlashHi ! I wont to call a flash exe inside a form I've created. How can I do this. (ps: I've heard there is a ocx that can be added but i dont know the name) Thanx in advance
-
Call Shell CommandThanx but both the solutions gives errors. System.ComponentModel.Win32Exception: The system cannot find the file specified at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start() at TestWindowsForms.Form1.menuItem24_Click(Object sender, EventArgs e) in d:\visual studio projects\art\testwindowsforms\form1.cs:line 661 at System.Windows.Forms.MenuItem.OnClick(EventArgs e) at System.Windows.Forms.MenuItemData.Execute() at System.Windows.Forms.Command.Invoke() at System.Windows.Forms.Control.WmCommand(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.ContainerControl.WndProc(Message& m) at System.Windows.Forms.Form.WndProc(Message& m) at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) Yes I've check the command " Rundll32.exe shell32.dll,Control_RunDLL Sysdm.cpl, 0 " inside the Start/Run dialog in windows 2000 and it works. But why doesn't it work when called from the program. Check with other *.cpl files as well. Any help would be Greatly appreciated !!! :((
-
Window Maximize ProblemThank you very much :)
-
Call Shell CommandThank you both :))
-
Get wepage source codeHi ! I use the object create my own web browser. private AxSHDocVw.AxWebBrowser instVisualObjectCreator; then by using instVisualObjectCreator.Navigate(); I show it inside my client form. But can i use this facility (instVisualObjectCreator object) to get the source of the web page. Is there a method to get the source code from this object. I've gone through the documentation but somehow the solution has illuded me. Thanx in Advance
-
Call Shell CommandHi! The normal call x = Shell("Rundll32.exe shell32.dll,Control_RunDLL Sysdm.cpl ,0") How can this be done in C# Thanx in Advance.
-
Window Maximize ProblemHi ! I've created my custom browser using the AxSHDocVw.AxWebBrowser The object created is called with in a form that I developed. Now when I maximize the parent window the child window ( the AxWebBrowser ) is not maximized with it. I've used the following piece of code to handle the problem bu tit doesn't seem to work. this.myBrowserInstance = new AxSHDocVw.AxWebBrowser(); InitializeComponent() { ... this.MaximizedBoundsChanged += new System.EventHandler(this.Form1_Maximize); ... } private void Form1_Maximize(object sender, System.EventArgs e) { ... System.Drawing.Size sizeOfBrowser = new System.Drawing.Size (this.MaximizedBounds.Width - 10, this.MaximizedBounds.Height - 10); myBrowserInstance.ClientSize= sizeOfBrowser; ... } Please help ! Thanx in Advance !! :(:((:((