|
Well I don't know of anything like that but you can access much of the functionality of MS Word through it's COM interface.
"Alot of the people on this forum are incredibly stupid, thinking that the internet is real" Score: 1.0 in the Soap Box
led mike
|
|
|
|
|
Not free but http://www.aspose.com[^] has some components which do this I think. They're not that expensive either.
As of how to accomplish this I have no idea, have you tried Google?
Failing that try
|
|
|
|
|
Hi,
thanks for your reply,
I checked the website, and the solution was looking for was found for US$2700 Did you mean it as a cheap price
I am still searching internet and I found a VBSCript who can convert HTML to Text. But I dont know how to use VBSCript within C#. So do you think if I just call SHELL (Diagnostic.Process.Start(...)) that VBSCRIPT, it should work on Every client's pc ?
Anyway thanks again for giving me clue.
Regards.
|
|
|
|
|
bashiwala wrote: US$2700
I don't remember it ever being priced that high, I seem to remember ~$100.
Re: Calling VBScript from C# yes you'll have to use Process.Start etc and all those namespaces. There are however some free controls which will allow html to be converted to rtf and vice versa. I did come across a small pure C# HTML browser component a short while ago which I seem to remember had an export to rtf function. Darned if I can remember the name of it though, I think it was posted as an article here on CP.
Re: Working on every client's PC, as long as they have VBScript installed (which I think is optional) then yes it will work.
As of how to accomplish this I have no idea, have you tried Google? Faiing that try
|
|
|
|
|
In my MDI application. I want some variables available in all forms. How can I do this?
Thanks
Syed Shahid Hussain
|
|
|
|
|
Hi,
To my knowledge, there is an easy way to do that, I am not aware of any other and more efficient techniqies.
VERY VERY EASY WAY:
Make an XML file, with all the variables name and value. Every time the value is changed from any Form, update the XML file. And
All forms will share the XML file to load the value of the variable.
You may Use lock to prevent concurrent modification to that xml. OR you can choose Database to store the name value pairs which takes care of concurrent modification.
|
|
|
|
|
That the perfect way but unfortunately I dont Know XML but I have some idea of it. However so thanks
Bye
Syed Shahid Hussain
|
|
|
|
|
Hello
Declare them as public properties of the parent form. Access them in your MDIChild forms by casting the parent property.
((MyForm)this.Parent).MyProperty = somthing
Regards
|
|
|
|
|
Thanks Nader but this time your have given me a high level answer that i cant understand. But you are so nice person. Because you are the most prominant person here who is ready for help. I checked your profile and your article about printing that was so good too. I like You my friend.
God Bless You.
Syed Shahid Hussain
|
|
|
|
|
Hello Syed.
Thank you for your gentle and kind reply.
About my suggestion -though I prefer greeg's one- forgive me if I wasn't clear about my idea. Here is a code to demostrate it:
class MyMDIParentForm : Form
{
private string MyPrivateVariable;
public string MyPublicProperty
{
set {MyPrivateVariable = value;}
get {return MyPrivateVariable;}
}
public void ShowChild()
{
MDIChild MyChild = new MDIChild();
MyChild.Parent = this;
MyChild.Show();
}
}
class MDIChild : Form
{
public void ChangeProperty()
{
((MyMDIParentForm)Parent).MyPublicProperty = "Hello World!";
}
}
Regards
|
|
|
|
|
Thanks I'll try it.
Bye
God Bless You
|
|
|
|
|
public class SomeClass {
public static int im_a_global_variable = 234;
}
Access from everywhere:
SomeClass.im_a_global_variable;
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Very Thanks
But if you have time tell me more about using it. if have more than 20 variables will all static and i have to retrive them from class name no instance is required.
Am I correct?
very very thanks
For very very quick response.
Syed Shahid Hussain
|
|
|
|
|
Syed Shahid Hussain wrote: if have more than 20 variables will all static and i have to retrive them from class name no instance is required.
Am I correct?
Yes, this is correct. You don't need an instance of this class.
In .NET 2.0 you might even declare the class static , like that:
class static GlobalClass { ...
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Thanks A lot dear friend i'll try it now.
Good Bye
Many thanks
God Bless You
Syed Shahid Hussain
|
|
|
|
|
Go to Project -> Add Class. Name your class Variables. Here is an example:
using System;
using System.Collections.Generic;
using System.Text;
namespace YourNamespaceName
{
class Variables
{
public static string var = "";
}
}
then to call on your variable from any code just access it like: Variables.var
Reference : http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=691807&SiteID=1[^]
|
|
|
|
|
Make a static variable in the main form, then you can access it from any form.
If you want to be stricter about object orientation, make a private static variable, and a public static property to access it.
---
b { font-weight: normal; }
|
|
|
|
|
Thanks Guffa I have aslo the same idea.
Very Thanks
God Bless You
Syed Shahid Hussain
|
|
|
|
|
hi
i am new to Crystal reports. Please give me the most beginer article about CRYSTAL REPORTS.
Thanks
Syed Shahid Hussain
|
|
|
|
|
Hello
Did you search the Articles[^]?;)
Regards
|
|
|
|
|
Thanks I am checking this.
Bye
Syed Shahid Hussain
|
|
|
|
|
Hi,
I have a static class, and it contains a private static member for resource management.
static class ConnectionManager
{
private static ResourceManager resmgr = new ResourceManager("myApplication.stringresources", Assembly.GetExecutingAssembly());
----------
--------
''''''''''''
}
initializing a static member this way, is this right way to do this?
every time when this class is called, would it reinitialize the static member, creating new memory allocation?
or would I have a single memory allocation alloted the first time class is refereneced?
Thanks,
herhighness
|
|
|
|
|
Yes, it is a right way.
The initialization of a static variable would be executed only once. You'll have the single memory allocated the first time class is refereneced.
Best,
Jun
|
|
|
|
|
Hi to all,
does any one knows how to resolve this problem
System.Ressources.MissingManifestRessourceException : Impossible to find the appropriate ressources for the specified culture of you assembly.
in fact, i have an image liste on a user control, and that's what is causing the problem, because when i delete the image list from the user control than i have no problem. if i try to put a new image liste, the message reappear again.
best regards and thanks in advance
fady
|
|
|
|
|
Hi all.
This question certanly not in properly place.But i consider what all who work with visual studio
may had response on one.
Some time ago i pass to use VS 2005.But there is one problem.When i edit an xsd file, IntelliSense work not how in VS 7. So three elements appear every time when i begin typed new element (< !-, < [, < ? ), how i can correct this behaviour.
Thank.
-- modified at 12:02 Wednesday 6th September, 2006
|
|
|
|