Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently January 9th, 2025, 9:10 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: February 18th, 2008, 3:38 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Slightly away from the topic,

http://www.nirsoft.net/utils/file_types_manager.html

This is a freeware application that will display & edit filetypes under Vista rather than hacking the registry :-)

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject:
PostPosted: March 27th, 2008, 11:51 am 
Offline

Joined: October 25th, 2004, 1:21 pm
Posts: 424
Location: West Lancs, UK
Opus: 7
OS: Xp, Win7
mackavi wrote:
Sorry, but script is the only way to check file existance: Use this script on the left click instead of your actions:

Code:
if (FileExists("C:\\Program Files\\Microsoft Office\\Office11\\PPTVIEW.EXE"))
{
   LaunchFile("C:\\Program Files\\Microsoft Office\\Office11\\PPTVIEW.EXE","c:\\temp\\green1.pps")
} else if (FileExists("C:\\Program Files\\Microsoft Office\\Office12\\PPTVIEW.EXE"))
{
   LaunchFile("C:\\Program Files\\Microsoft Office\\Office12\\PPTVIEW.EXE","c:\\temp\\green1.pps")
}
else
{
   Debug.trace("sorry PowerPoint Viewer Not Installed")
}



Mac,

I've been using this script, and clients are happy so far, until today:

The client's got an XP laptop, with Office 2000 running. He says that the powerpoint launches as expected, but when the first screen of it comes up, there's no text on the powerpoint.

His colleague is running Office 2003, and it works fine.

I've made him run the powerpoint from c:/temp in Explorer (bypassing the multimedia altogether) and he says it runs correctly.

He's bringing his laptop over in a couple of hours "for me to see".

As it's only him using the presentation, and he's on XP, I could go back to the original "launch this file" command.

But I wondered if there might be another reason I've missed (so I don't look stupid!!!)

Linda

_________________
Linda Rossiter, Rossiter & Co

Pro 8, Pro 7, Pro 6, Pro 05.5XE, Pro 04XE, XE2.8, ILM 4.5 on Win7 Professional


Top
 Profile Visit website  
 
 Post subject:
PostPosted: March 27th, 2008, 5:11 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Hi Linda,

Further to the email I've had quick think and look at this and it doesn't seem to make sense what the person is telling you:

The pathway for Office 2000 would not be picked up by this script and PPTVIEW.EXE wouldn't exist so the file should fail to launch at all using this script.


If the file is launching then I would assume that he has one of the PP viewers installed which might be a different problem altogether.

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject:
PostPosted: March 27th, 2008, 5:55 pm 
Offline

Joined: October 25th, 2004, 1:21 pm
Posts: 424
Location: West Lancs, UK
Opus: 7
OS: Xp, Win7
I had a look at his laptop - he actually had Office 2003.

One of our test machines has this too, and it worked fine on our test pc, but not on his laptop.

So, problem: on his laptop with Office 2003, using your script, the powerpoint launches, but with no text.

So I produced a "launch file" version just for him. It worked perfectly.

My problem is therefore solved, but it does mean that I've still not got a "solves all" answer... !

Ah well, he paid his balance, anyhow!!!

_________________
Linda Rossiter, Rossiter & Co

Pro 8, Pro 7, Pro 6, Pro 05.5XE, Pro 04XE, XE2.8, ILM 4.5 on Win7 Professional


Top
 Profile Visit website  
 
 Post subject:
PostPosted: March 28th, 2008, 8:31 am 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Morning Linda,

Very odd. The script is designed to simply launch the PPS - why it should affect the running of the file doesn't make sense.

At a guess, without seeing the system / file, I'd say that the script is forcing the file to load via a specific PP viewer and the 'default' launch action for that type launches using something else - but it is a guess :-)

I'd start by re-installing the viewer to ensure that file types are correctly registered. Alternatively, if you use a professional installer, you can configure file types during the installation of publication - making it seamless to the user.

I'm attaching an updated example that checks the OS before proceeding. It will only use the script method if Vista is found otherwise it will launch using the standard Opus action.

Regards,

Mack


You do not have the required permissions to view the files attached to this post.

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject:
PostPosted: July 10th, 2008, 6:19 pm 
Offline

Joined: October 25th, 2004, 1:21 pm
Posts: 424
Location: West Lancs, UK
Opus: 7
OS: Xp, Win7
Could someone help me amend this so that the file golf.pps is found in the root of the System Publication directory, rather than c:/temp?

{
if (FileExists("C:\\Program Files\\Microsoft Office\\Office11\\PPTVIEW.EXE"))
{
LaunchFile("C:\\Program Files\\Microsoft Office\\Office11\\PPTVIEW.EXE","c:\\temp\\golf.pps")
} else if (FileExists("C:\\Program Files\\Microsoft Office\\Office12\\PPTVIEW.EXE"))
{
LaunchFile("C:\\Program Files\\Microsoft Office\\Office12\\PPTVIEW.EXE","c:\\temp\\golf.pps")
} else
{
Debug.trace('Viewer Not Found')
}


}

Many thanks, Linda

_________________
Linda Rossiter, Rossiter & Co

Pro 8, Pro 7, Pro 6, Pro 05.5XE, Pro 04XE, XE2.8, ILM 4.5 on Win7 Professional


Top
 Profile Visit website  
 
 Post subject:
PostPosted: July 10th, 2008, 10:52 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Hi Linda

Simply replace the path with SYSTEM_PUBLICATION_DIR

LaunchFile("C:\\Program Files\\Microsoft Office\\Office11\\PPTVIEW.EXE",SYSTEM_PUBLICATION_DIR+"golf.pps")

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 29 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group