|
yeap, this is a typo, sorry.
the correct path is C:\\Program Files\\Acrobate\\Reader 8.0\\AcroRd32.exe in every example.
|
|
|
|
|
No problem That solved the problem?
|
|
|
|
|
nope, it's just a typo in here!
|
|
|
|
|
Ok, next steps could be:
- any info in stack of the exception
- is the exception type of Win32Exception
One possibility is usage rights as you mentioned. You could try to move the pdf to another place (for example temp where you would not have problems with rights)
Another thing is that is it possible that Acrobat is actually giving the error and it's only reported through .net framework.
I may be totally off the track at this time of the day (1 AM local time) and need to get some sleep, but I'll check on this again tomorrow
Mika
|
|
|
|
|
Acrobat really has the "e" on the end on your system?
This worked fine for me:
System.Diagnostics.Process.Start("\"C:\\Program Files\\Adobe\\Reader 8.0\\Reader\\AcroRd32.exe\"", "");
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Mark Salsbery wrote: Acrobat really has the "e" on the end on your system?
Aaaahhh, so that's why the 'methode' was not working.
|
|
|
|
|
it's just a typo.
should have been adobe instead of acrobat sorry.
if there are typos in the dirinfo then please ignore them. it's not the reason, because i copied the directory info from the file explorer to visual studio, so this info is correct. i guess when typing it here i mixed it up.
so the correct path should be
System.Diagnostics.Process.Start("\"C:\\Program Files\\Adobe\\Reader 8.0\\Reader\\AcroRd32.exe\"", "\"C:\\sourcedir\\somefile.pdf\"");
|
|
|
|
|
So is it working now?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
You could test one thing just in case:
- define both parameters as string and assign them
- put the string to clipboard
- paste the text to command prompt and execute it
If the pdf is opening, it's clear that the command is valid.
For example:
string filename = "\"C:\\Program Files\\Adobe\\Reader 8.0\\Reader\\AcroRd32.exe\"";
string arguments = "\"C:\\sourcedir\\somefile.pdf\"";
Clipboard.Clear();
Clipboard.SetText(filename + " " + arguments);
System.Diagnostics.Process.Start(filename, arguments);
Mika
|
|
|
|
|
Hi there.
How can we understand what in the clipboard is ?
|
|
|
|
|
|
Hi there guys.
I want to create a ListView with all columns' items selectable . (Win App)
I searched in ListView's properties but I couldn't find anything special to do that.
Can you help me ?
modified on Tuesday, August 12, 2008 4:38 PM
|
|
|
|
|
Mohammad Dayyan wrote: I want to create a ListView with all columns' items selectable .
First things first. Is it a Windows App or a Web App?
|
|
|
|
|
|
What do you actually mean by saying "all columns items selectable".
Do you want to see the entire row as selected instead of just the first column when clicking a row or do you want to select each cell separately on one row or something else?
|
|
|
|
|
OK. Thanks.
I want to select this[^]item in second column in my ListView.
But I couldn't.
Now Do you understand what I mean ?
|
|
|
|
|
Ok I see,
As far as I know it's not possible to select a cell in a second column in ListView. The only options are:
- select the first cell
- select the entire row
What I would suggest is that you use DataGridView instead. It's a little bit more complicated than ListView, but on the other hand it gives you very much flexibility (better visualization for each column, frozen columns, data editing in every cell and so on).
Hope this helps,
Mika
|
|
|
|
|
Mika Wendelius wrote: As far as I know it's not possible to select a cell in a second column in ListView. The only options are:
- select the first cell
- select the entire row
That's too bad.
Thank you Mika for reply.
|
|
|
|
|
You're welcome
|
|
|
|
|
Mika Wendelius wrote: - select the entire row
Excuse me.
Can you tell me how I can do it ?
|
|
|
|
|
Set FullRowSelect -property to True .
Mika
|
|
|
|
|
|
Glad to help you
|
|
|
|
|
Hi guys, I want to build a class either from Control or UserControl but I don't want to display it's parent properties (Control) inside the PropertyGrid control. I am wondering if there is any easir solution rather than just overriding the parent properties.
Thanks
|
|
|
|
|
Hi,
As far as I know, there's no easier way to do this. Also simply overriding isn't enough but you must also apply BrowsableAttribute.
If you are trying to make your own properties more easy to find in Properties window, you could use CategoryAttribute to create your own category where your properties are shown. But don't know if this is what you're trying to achieve.
Mika
|
|
|
|