I want to convert html file to Doc or rtf file. How it will be possible using c# through coding. Actually i have xml file and xsl file too. So if there is a way through which we can create a doc or rtf file if we provide xml and xsl file path or html file path than guide me to that. Thanx in advance Inam
Inam
Posts
-
How to convert html file to doc or rtf format -
How to convert html file to pdfI want to convert html file to pdf file. How it will be possible using c# through coding. Actually i have xml file and xsl file too. So if there is a way through which we can create a pdf file if we provide xml and xsl file path or html file path than guide me to that. Thanx in advance Inam
-
How To convert Xml to HtmlHow can i convert an xml file to html file. Actually i want to provide the xml file and xsl file to the function and it will give me a file with .htm or .html extension. Thanx in advance Regards minamkhan Inam
-
How to Get property value if it returns BSTRInfact program crashes when it executes the function invoke and in pVarRes there is coming bstr through get property but if long or int is coming it works well. Now i am not understanding what to do Regards minamkhan Inam
-
How to Get property value if it returns BSTRI have a com object in which there are different properties. When i get these values through it works well when property is returning long or some other integer but it crashes when property is returning bstr. Take a look at my code and guide me that what i did wrong. VARIANT pvResult; memset(&pvResult, 0, sizeof pvResult); VariantInit(&pvResult); DISPID dispID=this->pColl->getMemberID(index); DISPPARAMS dispParamsNoArgs={NULL,NULL,0,0}; HRESULT hr=pDispatch->Invoke(dispID,IID_NULL,LOCALE_USER_DEFAULT, DISPATCH_PROPERTYGET,&dispParamsNoArgs, &pvResult,NULL,&nArgErr); Thanx in advance Inam
-
How to Get property value if it returns BSTRI have a com object in which there are different properties. When i get these values through it works well when property is returning long or some other integer but it crashes when property is returning bstr. Take a look at my code and guide me that what i did wrong. VARIANT pvResult; memset(&pvResult, 0, sizeof pvResult); VariantInit(&pvResult); DISPID dispID=this->pColl->getMemberID(index); DISPPARAMS dispParamsNoArgs={NULL,NULL,0,0}; HRESULT hr=pDispatch->Invoke(dispID,IID_NULL,LOCALE_USER_DEFAULT, DISPATCH_PROPERTYGET,&dispParamsNoArgs, &pvResult,NULL,&nArgErr); Thanx in advance Inam
-
How to Get property value if it returns BSTRI have a com object in which there are different properties. When i get these values through it works well when property is returning long or some other integer but it crashes when property is returning bstr. Take a look at my code and guide me that what i did wrong. VARIANT pvResult; memset(&pvResult, 0, sizeof pvResult); VariantInit(&pvResult); DISPID dispID=this->pColl->getMemberID(index); DISPPARAMS dispParamsNoArgs={NULL,NULL,0,0}; HRESULT hr=pDispatch->Invoke(dispID,IID_NULL,LOCALE_USER_DEFAULT, DISPATCH_PROPERTYGET,&dispParamsNoArgs, &pvResult,NULL,&nArgErr); Thanx in advance Inam
-
typecat varenum to stringHow can i cast varEnum to CString e.g VARENUM vt=VT_I2; Now i want to show that VT_I2 through string. How can i do that. Thanx in advance Regards INAM Inam
-
typecat varenum to stringHow can i cast varEnum to CString e.g VARENUM vt=VT_I2; Now i want to show that VT_I2 through string. How can i do that. Thanx in advance Regards INAM Inam
-
How to get IID from ClsIDI have a clsid of a com component now i want to know its interface identifier. How can i do it. Thanx in advance Regards INAM Inam
-
read and edit xsl in c#Actually i want to change the transform and that is possible only with xsl. I think as u said that xslt is another grammer of xml. My problem will be solved by XmlTextReader and XmlTextWriter. Whats ur opinion Regards minamkhan Inam
-
read and edit xsl in c#Sir i try to explain the problem with a little example. I have a xml file an a xsl file, Now i have three fields in xml file let's say Name, Age, Address. Now i displays these fields to user as labels in windows Form. Now when user right click on any label i will display option to him e.g Font, Color different dialog etc. Now when user picks up the color i have to write that color against that field in xsl. will it be possible with XmlTextReader and XmlTextWriter Thanx in advance Regards minamkhan Inam
-
How to get ShowPropertyPages MethodI have a control which when i used in c#. i get the method ShowPropertyPages() through which it displays its properties but when i try the same in VC.NET i will get the error that there is no method ShowPropertyPages defined in the class. what am i doing wrong or what i have to do so that this error will overcome Thanx in advance Regards INAM Inam
-
read and edit xsl in c#I want to ask that how can i read, edit and write a xsl file. what classes i have to use. please guide me a little Thanx in advance Regards minamkhan Inam
-
How can i get properties of com object dynamicallySir Actually i have only the progId of the component now i want to also know how i will get the interfaces in this component dynamically than how can i get the names and return types of the properties in the interface dynamically. so that i will be able to get and set the properties in that interface. Sir please explain me little briefly as i am new to this topic. or if possible gave me a little example too. Thanx in advance Regards minamkhan Inam
-
Amazing error from VisualStudio.NETI have set the Enable unmanaged debugging to true but the same error comes . Actuallt the error when catch through exception is " System.Threading.ThreadStateException could not instantiate ActiveX control 'GUID of Control ' because the current thread is not in a single threded appartment at System.windows.Forms.AxHost ctor(String clsId,Int32 flags). " Thanx in advance Regards minamkhan Inam
-
How can i get properties of com object dynamicallyActually i am developing a class in which it will take any com object and will be able to set and get the properties. Now i have taken the clsid of the component. Now how can i get its properties as GetIdsofNames function of IDispatch takes names. Please Guide me briefly with a little example or tell me some article Thanx in advance Regards minamkhan Inam
-
How can i get properties of com object dynamicallyActually i am developing a class in which it will take any com object and will be able to set and get the properties. Now i have taken the clsid of the component. Now how can i get its properties as GetIdsofNames function of IDispatch takes names. Please Guide me briefly with a little example or tell me some article Thanx in advance Regards minamkhan Inam
-
How can i get properties of com object dynamicallyActually i am developing a class in which it will take any com object and will be able to set and get the properties. Now i have taken the clsid of the component. Now how can i get its properties as GetIdsofNames function of IDispatch takes names. Please Guide me briefly with a little example or tell me some article Thanx in advance Regards minamkhan Inam
-
Amazing error from VisualStudio.NETSir Thanks for ur reply Sir but i want to know that from where i can change my properties of Debugging to Enable Managed Debugging and How can i check that if i have the symbols installed or not. and if they are not how can i installed them. I will be thankful to u for giving me time Regards minamkhan Inam