Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Ken Murphy
  Where is Ken Murphy?
 Springhill
 Canada
 Ken Murphy
 To: tushar Kanvinde
  Where is tushar Kanvinde?
 Kolhapur, Maharastra
 India
 tushar Kanvinde
 Tags
Subject: RE: WebBrowser Control - Image Referencing
Thread ID: 112432 Message ID: 112461 # Views: 1 # Ratings: 0
Version: Visual FoxPro 6 Category: Active X Controls & OLE Automation
Date: Wednesday, November 08, 2006 9:00:02 PM         
   


> > > > Dear Experts,
> > > > In a form I am using the Microsoft Web Browser Control for display of output to the end user.
> > > >
> > > > The HTML to be displayed is generated in code using data in my data tables and using certain images in some of the records.
> > > >
> > > > I have to keep everything (including data and images) packed inside the EXE as everything is static and to ensure security.
> > > >
> > > > I am facing problem with display of images in the Web Browser control.
> > > > As i have included them in the EXE, VFP can read the image file with the relative path, but within the dynamically generated HTML, the web browser cannot reference the image.
> > > >
> > > > Is there any way out!!
> > > >
> > > > Regards,
> > > > Vinay
> > > > Cheers for Fox, Folks!
> > > > My Blog: www.weblogs.foxite.com/vinaypagaria

> > > At the time of execution copy the image files to the temporary folder and then delete the temp file after viewing
> > >
> > > Regards
> > > Tushar

> >
> > Tushar,
> >
> > That would work, but it would be slow. If you were attempting to do this for a series of image files, it could take a fair amount of time.
> >
> > Ken
> > You shall know the truth - and the truth shall set you free. (John 8:33)

> Ken
> If they are in the exe file, they may (hopefully) not be that large or numerous.
>
> Regards
> Tushar


Tushar,

You would be AMAZED at what I have seen included in an EXE. I ran into one situation where the fellow had included 12 image files to be used as a background picture on his forms (like a wall paper for each month.) The images were over 100MB each! They wanted to know why it took so long to start the app! We reduced the size of the images somewhat and wonder of wonders? It worked faster. :)

Hopefully, Vinay's images are somewhat smaller.

Ken
You shall know the truth - and the truth shall set you free. (John 8:33)

ENTIRE THREAD

WebBrowser Control - Image Referencing Posted by Vinay Pagaria @ 11/8/2006 2:17:59 PM
RE: WebBrowser Control - Image Referencing Posted by Ken Murphy @ 11/8/2006 2:37:30 PM
RE: WebBrowser Control - Image Referencing Posted by tushar @ 11/8/2006 3:56:33 PM
RE: WebBrowser Control - Image Referencing Posted by Ken Murphy @ 11/8/2006 4:45:33 PM
RE: WebBrowser Control - Image Referencing Posted by tushar @ 11/8/2006 7:30:13 PM
RE: WebBrowser Control - Image Referencing Posted by Ken Murphy @ 11/8/2006 9:00:02 PM
RE: WebBrowser Control - Image Referencing Posted by tushar @ 11/9/2006 7:49:12 AM
RE: WebBrowser Control - Image Referencing Posted by Vinay Pagaria @ 11/9/2006 8:32:52 AM
RE: WebBrowser Control - Image Referencing Posted by Ken Murphy @ 11/9/2006 8:53:44 AM
RE: WebBrowser Control - Image Referencing Posted by tushar @ 11/9/2006 9:30:35 AM
RE: WebBrowser Control - Image Referencing Posted by Vinay Pagaria @ 11/9/2006 2:38:07 PM
RE: WebBrowser Control - Image Referencing Posted by Ken Murphy @ 11/9/2006 2:48:43 PM