Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Prevent editing in Web Browser
Message
De
19/12/2008 15:47:26
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
19/12/2008 12:06:51
Mike Sue-Ping
Cambridge, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01368880
Message ID:
01368920
Vues:
13
>I've got a comma separated values file (csv) that opens in a webBrowser control hosted in a VFP9 form. It appears rendered as a spreadsheet (Excel) and is editable.
>
>How can I prevent the contents from being changed?
>
>I've tried to set the file as readonly, but, it does not help; the user can still edit the content.
>
>TIA
>Mike
#define xlNoSelection                                     -4142

oXLS = myWBControl.Object.Document
oExcel = oXLS.Application
oExcel.CommandBars("Standard").visible = .F.
oExcel.CommandBars("Formatting").visible = .F.
oExcel.ActiveWorkbook.ActiveSheet.EnableSelection = xlNoSelection
oExcel.ActiveWorkbook.ActiveSheet.Protect(,,.T.,,.T.)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform