|
Did you ever discover how to access the default
right-click context menu? I have the same issue.
Thanks,
Mike
Cheers,
Mike Fidler
|
|
|
|
|
Dear all,
I have read this article : Saving Word 2007 Documents to PDF and XPS Formats (http://msdn.microsoft.com/en-us/library/bb412305.aspx) but I do not know whether using Word 12.0 Object Library to open Word 2003 documents (or older versions) and convert them to pdf format.
Could you give me the suggestion for this?
Thanks in advance
|
|
|
|
|
What happens when you try it?
txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
I did not try this.
Because I do not have MS Office 2007 now and I want to make sure this way OK to answer customer.
|
|
|
|
|
pcphuc wrote: Because I do not have MS Office 2007 now and I want to make sure this way OK to answer customer.
May I suggest you do not answer your customer until you have tried and tested the solution you are offering. I know that Word 2007 can open 2003 format doc files, but that does not guarantee that your program will be able to read them and convert them successfully to PDF.
txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
Thanks you.
I'll try this solution for sure.
|
|
|
|
|
Hello,
I want to include a file which contains the basic string values that are required by my system.There is no #include file.h support for C# .
Is there any way where I can define global variables so that they are available for all my forms and files in the project?
HOw can i do that ?
Thanks
|
|
|
|
|
The only thing you can do is put all your variables in a public static class and put that class inside your project's namespace. You can then access them with className.variableName. If you declare them as public also, of course.
|
|
|
|
|
XajniN wrote: The only thing you can do
Not at all; that may be recommended, but there are several ways to skin this cat.
Database, config file, resource file (as far as I know), an enumeration may be of use too.
|
|
|
|
|
Well, that's one of the things you'll have to get used to with C#.
I usually define a Global class that contains all my constants and true global variables. Just reference it and use the constants/variables or refer to them as Global.Foo , etc.
Perhaps others have a more elegant way.
CQ de W5ALT
Walt Fair, Jr., P. E.
Comport Computing
Specializing in Technical Engineering Software
|
|
|
|
|
Ooor... pass your C# code through a C-preprocessor; there's nothing stopping you.
|
|
|
|
|
I knew I would read such a reply by you right when I saw the question.
|
|
|
|
|
Hey guys
thanks for all ur suggestions.
Prithaa
|
|
|
|
|
Yep, I almost expected someone to have already replied saying just wait until I got on.
|
|
|
|
|
Any sugestions on a very extensive book on everything C#? The C# bible is good, but outdated...last printing was in 2002. Im looking fore something like that.
|
|
|
|
|
I often refer to the spec.
|
|
|
|
|
You can hardly find any book that will cover almost everything. MSDN Library is the best place to start.
|
|
|
|
|
"Everything C#", is MSDN.
If you want something else, then you're going to have to put up with stuff being left out.
|
|
|
|
|
The Nutshell[^] book(s). Accept no substitute!
/ravi
|
|
|
|
|
is it possible to use an XML file with all XML assemblies but with an XML which has a different file extension? so it's actually an XML file but it has .ext extension?
|
|
|
|
|
It depends upon what you mean by "use", but you can read any file containing XML as XML, no matter what the extension of the file actually is.
Dalek Dave: There are many words that some find offensive, Homosexuality, Alcoholism, Religion, Visual Basic, Manchester United, Butter.
Pete o'Hanlon: If it wasn't insulting tools, I'd say you were dumber than a bag of spanners.
|
|
|
|
|
|
It depends on what you want it to do based on the extension. I use XML to save configuration info in files and give the file a different extension so they are easy to identify, etc. The file extension and the contents are independent of each other.
CQ de W5ALT
Walt Fair, Jr., P. E.
Comport Computing
Specializing in Technical Engineering Software
|
|
|
|
|
I want to know how can I check if the clipboard has a URL or not? basically I have a txtURL textbox on my form and I want if they user went to any browser or word editor to copy a URL from there then came back o the same form it should display a MessageBox saying dio you want to copy the URL in the textbox?
|
|
|
|
|
Yeah, just check if the text in the clipboard is a valid URL. I don't believe there is a specific format for URL's when copied to the clipboard (i.e., they will just be copied as text). Actually, the way the clipboard works is that items can be copied to the clipboard in their various formats. So, the URL might exist as both text and as, say, HTML in the clipboard. If you really want to know, give it a try... handle some event that inspects the clipboard and see what formats are in it, then see what data is contained in each format.
|
|
|
|