

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
21 messages in org.openoffice.fr.progRE: [prog] OLE OpenOffice et VB.NET| From | Sent On | Attachments |
|---|---|---|
| Cezame Concept | Feb 24, 2006 4:38 am | .dat |
| FAouzi Abderrahman | Feb 24, 2006 4:43 am | .dat |
| Cezame Concept | Feb 24, 2006 5:13 am | .dat |
| FAouzi Abderrahman | Feb 24, 2006 5:31 am | .dat |
| Laurent Godard | Feb 24, 2006 5:31 am | |
| Cezame Concept | Feb 24, 2006 5:54 am | .dat |
| FAouzi Abderrahman | Feb 24, 2006 6:01 am | .dat |
| FAouzi Abderrahman | Feb 24, 2006 6:04 am | .dat |
| Cezame Concept | Feb 24, 2006 6:05 am | .dat |
| Cezame Concept | Feb 24, 2006 6:12 am | .dat |
| Bernard Marcelly | Feb 24, 2006 6:13 am | |
| FAouzi Abderrahman | Feb 24, 2006 6:14 am | .dat |
| Cezame Concept | Feb 24, 2006 6:57 am | .dat |
| Cezame Concept | Feb 24, 2006 6:59 am | |
| Bernard Marcelly | Feb 24, 2006 8:48 am | |
| Cezame Concept | Feb 24, 2006 8:58 am | |
| Didier Dorange-Pattoret | Feb 24, 2006 1:17 pm | |
| Cezame Concept | Feb 27, 2006 12:50 am | |
| Cezame Concept | Feb 27, 2006 2:12 am | |
| Cezame Concept | Feb 27, 2006 6:41 am | |
| Cezame Concept | Feb 27, 2006 9:28 am |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | RE: [prog] OLE OpenOffice et VB.NET | Actions... |
|---|---|---|
| From: | FAouzi Abderrahman (fa...@prosig.fr) | |
| Date: | Feb 24, 2006 5:31:26 am | |
| List: | org.openoffice.fr.prog | |
| Attachments: | ![]() winmail.dat - 15k | |
Voici un exemple qui marche correctement avec Delphi :
procedure TOOoWriter.SaveToPDF(FileName: string); var wProperties: variant; begin if not (fConnected and fDocumentOpened) then abort;
wProperties := VarArrayCreate([0, 0], varVariant); wProperties[0] := MakePropertyValue('FilterName', 'writer_pdf_Export'); fDocument.StoreToURL('file:///'+ StripString(FileName, ['\'], '/'), wProperties); end;
function TOOoWriter.MakePropertyValue(PropName: string; PropValue: variant): variant; var Struct: variant; begin Struct := fOpenOffice.Bridge_GetStruct('com.sun.star.beans.PropertyValue'); Struct.Name := PropName; Struct.Value := PropValue; Result := Struct; End Function
_____________________________________________ De : Cezame Concept [mailto:ceza...@wanadoo.fr] Envoyé : vendredi 24 février 2006 14:13 À : pr...@fr.openoffice.org Objet : RE: [prog] OLE OpenOffice et VB.NET
Le plus gros problème rencontré réside dans le passage de paramètres avec la commande « PropertyValue » ...
Ci-dessous un exemple :
En VB : Function setOOoProp(cName, uValue) As Object Dim oPropertyValue As Object Dim oSM As Object Set oSM = CreateObject("com.sun.star.ServiceManager") Set oPropertyValue = oSM.Bridge_GetStruct("com.sun.star.beans.PropertyValue") oPropertyValue.Name = cName oPropertyValue.Value = uValue Set setOOoProp = oPropertyValue End Function
En Windev quand on fait : oPropertyValue est objet Automation dynamique oPropertyValue>>Name="FilterName" oPropertyValue>>Value="writer_pdf_Export"
jusqu'ici tout est ok mais si on passe oPropertyValue à la fonction storeToURL( .... , oPropertyValue ) alors erreur ... Le membre demandé n'existe pas.
D'avance merci
_____________________________________________ De : FAouzi Abderrahman [mailto:fa...@prosig.fr] Envoyé : vendredi 24 février 2006 13:44 À : pr...@fr.openoffice.org Objet : [Norton AntiSpam] RE: [prog] OLE OpenOffice et VB.NET
Sous delphi, même concept presque
Décrit ton problème
_____________________________________________ De : Cezame Concept [mailto:ceza...@wanadoo.fr] Envoyé : vendredi 24 février 2006 13:39 À : pr...@fr.openoffice.org Objet : [prog] OLE OpenOffice et VB.NET
Rencontrant des problèmes pour utiliser l'OLE open office sous Windev je me suis penché sur VB Express 2005 et l'assemblage.NET
Est-ce que quelqu'un a déjà utilisé l'OLE ou autre sous VB.NET ?
D'avance merci pour toute information
Cyril VIGNOLO
Ceza...@wanadoo.fr
<< Fichier: ATT00248.txt >> << Fichier: ATT00096.txt >> << Fichier: ATT00279.txt >>








.dat