Hi, I guess the application you mentioned is using MSOffice Automation Object, it means the doc format analysis is done by MS. That's just my personal point. On the other hand, maybe you could also use this way. I'm amumu, and you?
Feng Qin
Posts
-
MS Officeto XML -
MS Officeto XMLFrom my known, the format of doc is not public, otherwise many other Office products would be compliant with MS Office documents well and then rob its market. I'm amumu, and you?
-
downcasting Object typesThe following is more safer:
Object obj = someAssembly.CreateInstance("MyClass"); if( obj is MyAbstractClass ) { MyAbstractClass x = (MyAbstractClass) obj; //downcasting allowed?? x.doCoolStuff(); //exploit polymorphism }
and the precondition is you have added reference library, which has a definition of MyAbstractClass.:cool: I'm amumu, and you? -
Password in a PropertygridWell, in the normal way, the property can be edited in a textbox, right? So, we can change its default UITypeEditor to a TextBox which PasswordChar is * or any char you like, by setting some attributes like EditorAttribute on the property you have. Hope helps to you.:cool: I'm amumu, and you?
-
Interoperatioin with Shell32.dll COMObject...But I think ShellLinkObjectClass should be created.:( I'm amumu, and you?
-
Interoperatioin with Shell32.dll COMObject...I want to use COMObject in Shell32.dll, and I have ran "Regsvr32 -i shell32.dll", but when I create the object, vs.net tell me "ComObject is not valid or registered." Following is my code:
try { Shell32.ShellLinkObjectClass link = new Shell32.ShellLinkObjectClass(); link.Path = "C:\\boot.ini"; link.Save("D:\\Mylink.lnk"); } catch( System.Runtime.InteropServices.COMException ex ) { MessageBox.Show( ex.Message ); }
Thanks for your help!:rose: I'm amumu, and you? -
CodeCollector - Addin of Visual Studio.net, Beta released.CodeCollector: That's my first add-in for Visual Studio.net, the main point is study try the way of developing the add-in for vs.net.Its main feather is collecting useful and repearable source code for you, you can select the code you want to collect and then drag or use popup menu to add them to "CodeCollector", when you want to use them, you can insert the content of file into your current document. History v1.0.0.0 2002.8.12 Released. 2002.8.12 Locate the xml configuration file by satellite path instead current application path. 2002.8.12 Fixed the bug that when user change a propery of folder or file, the name will be changed. 2002.8.13 Fixed the bug that when user double click a folder. 2002.8.13 Fixed the bug when deleteing the popupmenu which is build-in. 2002.8.14 Add "Search" command which can search a word in CodeCollector. 2002.8.14 Add "Insert" command which can insert the file of CodeCollector to current document. 2002.8.15 Add "About" information.:) Thanks: Thank , for testing beta version. Contact: Author: Qin feng EMail: qf0421@hotmail.com, Feng.Qin@alcatel-sbell.com.cn Any advice are welcomed!:) SnapShot Click here to download I'm amumu, and you?
-
.NET Framework Version:)System.Version I'm amumu, and you?
-
Is there some body who is familiar with .vsz file? -
Web Service Deploymenttry "aspnet_iisreg -i" I'm amumu, and you?
-
Problem at creating a vs.net wizardHi, all I try to create a wizard for vs.net when new project or file, when I test my wizard, vs.net always pops up a dialog "Could not run the xxx wizard". firt part is my dll source:
using System; using System.Windows.Forms; using EnvDTE; namespace MyVSWizard { /// /// Summary description for Wizard. /// public class Wizard : Object, IDTWizard { public Wizard() { // // TODO: Add constructor logic here // } public void Execute( object Application, int hwndOwner, ref object[] ContextParams, ref object[] CustomParams, ref wizardResult retval ) { MessageBox.Show("Hello world"); } } }
then I use "regasm /codebase" to register the dll as a com and get the clsid ={34470340-B2D6-39A4-AFDA-A53A13D04DF7}. then my .vsz fileVSWizard 7.0 Wizard={34470340-B2D6-39A4-AFDA-A53A13D04DF7}
then my clause in .vsdir fileMyWizard.vsz|{34470340-B2D6-39A4-AFDA-A53A13D04DF7}|0|270|My First Wizard|{34470340-B2D6-39A4-AFDA-A53A13D04DF7}|0|0|MyClass.cs
Thank you for your help!:rose: I'm amumu, and you? -
About shared assembly.Thank you, James, but how about 2nd question? I'm amumu, and you?
-
About shared assembly.1.I can add an assembly to cache, but I cannot find it in dialog when you click "Add reference", how can I let my assembly to the dialog's .net assembly list? 2.I built two version assembly(v1.0.0.0 and v1.0.0.1) that included the same sn, also added them to cache, now I want to refer the certain version of them in my application, how can I do? I have tried "Add reference", but I cannot find it because the problem 1, then, I used "Browse" to select a certain version dll(ie: v1.0.0.0) file because of using the namespace of the shared assembly, then I wrote a config file of application: bindingRedirect oldVersion="1.0.0.0" newVersion="1.0.0.1" But when I run the program, the application still link to v1.0.0.0. Any thoughts? Thank you! I'm amumu, and you?
-
Session_End doesn't work...:(I want to do some job on Session_End in global.asmx, but when I close the IE, it cannot be occured.:( I'm amumu, and you?
-
C# and Web ServicesUse command: aspnet_iisreg -i to install .net framework to your iis server. I'm amumu, and you?
-
C# .NET questionIf you installed vs.net, you can find C# language sepecification document on VC# folder, and also you can find many resource on msdn online. I'm amumu, and you?
-
Data Link Dialog Box???I think all dlls you refered are running at local machine, and two support remoting: web service and system.remoting, right? I'm not sure about it.:| And also you can notice if you add a reference, vs.net will copy the file to your bin directory, does it means dll will be invoked local? I'm amumu, and you?
-
Data Link Dialog Box???MSDASC.DataLinks dl = new MSDASC.DataLinks(); ADODB.Connection connection = dl.PromptNew() as ADODB.Connection; if( null != connection ) MessageBox.Show( connection.ConnectionString ); You should add reference "Microsoft OLE DB Service Component 1.0 Type Library" and the "Microsoft ActiveX Data Objects 2.5 Library" to your project's reference.:rolleyes: I'm amumu, and you?
-
Data Link Dialog Box???Code: MSDASC.DataLinks dl = new MSDASC.DataLinks(); dl.PromptNew(); You can find the whole information on msdn : http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsqlmag2k/html/LinkAPI.asp In C# project, you should add a com reference named : Microsoft OLE DB Service Component 1.0 Type Library Good luck! :rolleyes: I'm amumu, and you?
-
Recommendations for container and algorithm library.If the object you stored in Array implements the IComparable interface, you can use Array.Sort to sort the elements by your own algorithms. I'm amumu, and you?