Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing multiple files simultaneously
Message
From
10/06/1999 15:31:11
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
09/06/1999 23:07:25
Charlie Davies
McIntire School of Commerce
Virginia, United States
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00228018
Message ID:
00228539
Views:
18
>>>Here's the scenario:
>>>
>>>I've got several documents, some of them .tif files, some of them .txt files, and some them .jpg files that need to be loaded at the same time into a viewer with a window menu item that allows the user to go back and forth between the different files and scroll through the pages of any muli-paged file.
>>>
>>>Does such a thing exist or is such a thing even possible? As far as I could tell, the OLE bound control has to receive its object from a general field (limits the control to only one file) which is not a good solution for me; and the ole container control does not allow the user to see multiple files at the same time (user can only see one file in the control but this one object can contain several different files and they scroll through the pages with no clear distinction between one file and another) and this is no good either. Thanks to the person who delivers me from this evil pit.
>>
>>And here's a WAG: why not generate some HTML which would show these files in some organized manner? Just run an instance of a browser and hand it the file.


>Dragan,
>
> I've never worked with anything like this before. What's involved in accomplishing this? How do you convert the files into HTML? When you create an instance of the browser, do you accomplish this by using createobject() or is there some ActiveX control for the job? Do you have any sample code for doing this or have any hints on how to get started?
> If you can explain to me how this works and I don't have to write five thousand lines of code to do it, you'll be my new super hero!

Generating HTML is not that hard at all. Assuming you have some memos with text and some other fields with paths to the actual images, it would be easy to get the relevant records into a view/cursor, generate some decent looking HTML with text from memos and image tags pointing to image files, and then (here comes the thing I'm still investigating) show it in the browser. Instantiating a browser as an external process is not hard at all, but having it run within a Fox window is a horse of quite a different color. I tried Ken Levy's _ScreenX (look at http://www.classx.com/), but it requires VFP6.0. I have actually got it to work to some extent, specially the demos which rely on this one (webexplr, ieview projects), but didn't get close enough to make some of my stuff work.

You may give me some hint as to what you're trying to achieve, and I may send you some bits I've already done - email me.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform