Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can VFP determine MS Project version on a file
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00618395
Message ID:
00618425
Views:
10
>>I have a web site that I set up to download MS Project files. The problem we are having is that the people who fund the project have MS Project 98 and some of the remote engineers who need to download files have MS Project 2000. The people with the money have mandated that all MS Project files be saved as MS Project 98 format. Well some engineers forget or don't know the rules. So is there a way in VFP that I can determine the MS Project version that the file was saved in. That way I can send the user to an error page informing them of this before the record is downloaded from the web and a database record added.
>>
>>TIA
>
>
>Bret,
>The brute force approach could be to open the MPP file using the LLFF and read the first 5000 bytes of the file. The string "Microsoft Project 9.0" will be there for Project 2000. "Microsoft Project 8.0" will be there for Project 98.
>
>HTH.

Let me give that a chance. Although speed tests will have to be done to see if low level file reading will cause too much of a slow down. I will see what I can do with this suggestion.

Thanks
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Previous
Reply
Map
View

Click here to load this message in the networking platform