|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Creating html from vbHello,
I want basically to create from vb6 an simple html file ("c: \Image1.html") which will display a JPG image file ("c:\Image1.jpg") I am not proficient at html Is there a simple vb6 function to achieve this? Regards Avi avi used his keyboard to write :
> Hello, There isn't a simple function built in. But, I might still have my old > > I want basically to create from vb6 an simple html file ("c: > \Image1.html") which will display a JPG image file ("c:\Image1.jpg") > > I am not proficient at html > > Is there a simple vb6 function to achieve this? > > Regards > Avi cgi class library laying around - and that had a lot of functions for dynamcially generating html.... I look around, and if I find it - I'll post the code somewhere. -- Tom Shelton "avi" <avi***@bezeqint.net.il> wrote In a word.... (no)> > I want basically to create from vb6 an simple html file ("c: > \Image1.html") which will display a JPG image file ("c:\Image1.jpg") > > I am not proficient at html > > Is there a simple vb6 function to achieve this? Internet Explorer will open and display a jpg file (as well as other image files). Unless you want to add words, you do not need to create a page, just open the file. Shell "C:\Program Files\Internet Explorer\IEXPLORE.EXE ""D:\temp\einstein.jpg""" LFS "avi" <avi***@bezeqint.net.il> wrote in message Air code, not testednews:7d0b54c8-8cf7-4988-92c2-ca5981d2e6d0@g19g2000yqc.googlegroups.com... : Thanks but I need it it with as an html file : : Regards : Avi Public Function ImgToHTML (ByVal sImage As String) As String Dim sHTML As String sHTML = "<HTML>" sHTML = sHTML & "<BODY>" sHTML = sHTML & "<img src=""" & sImage & """>" sHTML = sHTML & "</BODY>" sHTML = sHTML & "</HTML>" ImgToHTML = sHTML End Function Then save your html string to a file with a .html extension "avi" <avi***@bezeqint.net.il> wrote in message Honestly, it's 2010. Learn HTML. It's not going anywhere and you'll be hard news:7d0b54c8-8cf7-4988-92c2-ca5981d2e6d0@g19g2000yqc.googlegroups.com... > Thanks but I need it it with as an html file pressed as a programmer to avoid it.
create user on AD server
the vb letter Problem automating page in IE 8 Intermittent problem in data transfer MSAccess to Oracle using VB How to display 4 order Polynomial equation from the Excel in VB6 Re: .NET vs Java (Windows service development) Re: .NET vs Java (Windows service development) Casting in VB6 Predefined gradients Treewalker for MSXML2 in VB6 |
|||||||||||||||||||||||