Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Web browser / word wrap
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00883600
Message ID:
00884412
Vues:
19
this is what I use:
LOCAL lcTempFileName
lcTempFileName=ADDBS(SYS(5)+SYS(2003))+"temp\TempIEfile.txt"
STRTOFILE("<html><body>"+CHR(13)+CHR(10)+Thisform.Business.Data.notes+CHR(13)+CHR(10)+"</body></html>",lcTempFileName)


LOCAL oe as internetexplorer.application
oe=CREATEOBJECT("internetexplorer.application")
*oe.navigate2("www.levelextreme.com")
oe.Navigate2(lcTempFileName)
oe.MenuBar		=.f.
oe.AddressBar 	=.f.
oe.ToolBar		=.f.
oe.TheaterMode	=.f.
oe.StatusText 	=.f.
oe.StatusBAR	=.f.
*OE.Document	="C:\vApps\vCPR3\text\sif_0001.txt"
oe.width=600
oe.height=800
oe.StatusBAR	=.T.
oe.StatusBAR	=.F.
oe.visible		=.t.
oe=""
ERASE (lcTempFileName)
and it does not wrap



>>I am using the web browser control to diplay text file. The text does not wrap so all I see is the beginng of a long line per paragraph.
>>
>>Can I somehow turn on wrapping??
>>
>
>Wrapping should happen by default as long as you aren't doing things like wrapping the text in < pre > tags (I added extra spaces - they don't belong there). Just wrap the text file:
>
>
><html>
><body>
>Insert long text file here
></body>
></html>
>
Peter Cortiel
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform