|
Hello,
I have a pdf file that has the whole help stuff in it. Based on the helpId(Which form the user has selected) I should display the correct help page.
Will this below code serve my purpose?
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.FileName = "Guide.pdf";
startInfo.Verb = helpId;
System.Diagnostics.Process.Start(startInfo);
|
|
|
|
|
This is programming, it's not black magic. You can't just go around making stuff up and expect it to magically do what you want it to. Instead, you should use reference books and google to research the tools you are using.
No. Of course not. You've taken a random property and tried to make it magically do what you want. The verb is a predefined term like 'run' or 'print' that tells the process what to do. There is no way that I know of to make a PDF open on a specific page. You'd have to read the Acrobat documentation to see if it's possible to pass any parameters to Acrobat, to tell it what page to open. As you appear incapable of research, I'll tell you that Arguments is the property on ProcessStartInfo you use to pass an argument to a program. But, you need to find out for yourself if Acrobat will take an argument to do what you want it to.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
|
Abhishek Sur wrote: Atleast you need to open the PDF to your own viewer to have better control rather than opening in Acrobat Reader directly.
Those libraries are not cheap. What's the bet this guy is only interested in free solutions ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
|
I don't think you can do this using PDF files. If you can make your help files to a CHM file, work with Help.ShowHelp()[^] method by providing appropriate HelpNavigator value.
|
|
|
|
|
Hello,
I am using a MSAccess database date entered into the database are Medium date format ie. dd-mmm-yy format. But when the data is pulled from the db and shown into a datagrid, it's like mm/dd/yyyy hh:mm:ss. But I want only the medium date that is dd-mm-yy format(18-Aug-09). Please help.
Thanks in advance.
|
|
|
|
|
Any half decent database, stores a date as a date. That means, it does NOT store a string in any special format. It stores actual date information. So, in C#, you will end up with a DateTime object, instead of a string. And you can format that any way you like.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Actually this happens as your Localized regional datetime settings is dd-mm-yy.
To format use
DateTime.ParseExact(datestring, "dd-mmm-yy", new CultureInfo("en-US"))
|
|
|
|
|
i want to recieve sms using mcore library. But im getting an error: "invalid response to the message sommand"
if anyone has used mcore, can he or she help me out? its really urgent
plzzzz plzz plzzz reply
|
|
|
|
|
If it's that important, you're best source of information is going to be the people who wrote the library. I'm guessing that would be Infospace.
|
|
|
|
|
|
This may be urgent only for you. And putting this in subject line is considered as rude.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
maham siddiqui wrote: plzzzz plzz plzzz reply
icnthlp
Regards
David R
---------------------------------------------------------------
"Every program eventually becomes rococo, and then rubble." - Alan Perlis
|
|
|
|
|
I want to know how can I detect which email client is the default on the system using C#?
|
|
|
|
|
|
I am working on one apllication and now i am testing with windows7 but as we all know that there is no email-option available in windows7.but i want to make my code very generic that it should detact the default email client and if client not availble then display some genaric message like "perticular email client not availbel ".
Please suggest me on the same asap.
regards
raj
|
|
|
|
|
Hi,
I am developing the Text editor using c#.net
I want to implement print functionality and the printed pages should be WYSIWYG format
In my application I am using rich textbox control which acts as a single page, so for every page I am using a new rich text box control. When ever I have tried to print then the printed content should be like WYSIWYG format
Thanks
Vijay Kommalapati
|
|
|
|
|
veejay_veejay wrote: In my application I am using rich textbox control which acts as a single page, so for every page I am using a new rich text box control. When ever I have tried to print then the printed content should be like WYSIWYG form
What have done so far?
Where is the problem?
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
|
hello
i m unabale to open doc file in c#
can any body help me plz
|
|
|
|
|
Here [^]is the solution
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
I have been asked to build a command prompt based application that will bypass the printer driver and connect directly to the printer to print? Does anyone have any suggestions on how to do this. And How to build a printers INIT string?
|
|
|
|
|
Why have you been asked to do something that you plainly don't know how to do ? What resources were you given to do this ? Or did you start on the job today and were given a task and the URL to code project, so we'd do it for you ?
I imagine this is a pretty complex task, and I'd have thought C++ would be better suited to it, than C#.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I need the ability to read in data from an Excel file, operate on it, and then create a new excel file.
Currently I have the code I need to use the Interop library to manualy open excel and read the data from there. However, this seems to be very unstable as any prompt for user input results in the program being halted.
My other plan would be to convert the .xls into .csv and then into .xml and read that data in, however I have never dealt directly with .xml files before. My biggest problem with reading in the data is that there are many blank cells within the excel file, the ability to read data from the cells directly using the cell address (such as B4 or 5,8) is a main priority of my solution.
Also, converting .xls => .csv => .xml to produce a .xml and then convert .xml => .csv => .xls seems like a lot of unnessasary work.
Is anyone able to point me in the right direction as to what would be the easiest way to do this? I am fairly new to programming, but am competent enough to understand well documented code that tries not to be too obscure.
|
|
|
|