Search found 176 matches: oword

Return to advanced search

Re: Fwh 23.10 rpreview problems

Dear Silvio, Could you please run this code ? local oWord := WinWordObj() local oDoc := oWord:Documents:Add() oDoc:PageSetup:Orientation = 0 many thanks for your feedback I add these lines on my Anteprima() function Function Anteprima(oBrowse,oRec)local ...
by Silvio.Falconi
Thu Nov 09, 2023 9:49 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Fwh 23.10 rpreview problems
Replies: 7
Views: 578

Re: Fwh 23.10 rpreview problems

Dear Silvio,

Could you please run this code ?

local oWord := WinWordObj()
local oDoc := oWord:Documents:Add()

oDoc:PageSetup:Orientation = 0

many thanks for your feedback
by Antonio Linares
Thu Nov 09, 2023 9:19 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Fwh 23.10 rpreview problems
Replies: 7
Views: 578

Re: De xHarbour a Harbour error en TWord

...      Enddo       Release oReplace,oFind,oTexto       RETURN nil  Aunque también he tenido que modificar el método NEW comentando la linea IF ::oWord:hObj == 0 porque daba error METHOD   NEW()  CLASS TWord   ::lWord  := .T.   #IFDEF __XHARBOUR__      TRY        ::oWord := GetActiveObject( ...
by Manuel Aranda
Sun Jul 16, 2023 7:53 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: De xHarbour a Harbour error en TWord (Resuelto...casi)
Replies: 12
Views: 397

Re: Small Question about Word and FWH

Dear Michel, > 1. How do I open my document minimized? odoc := oWord:Documents:Open( cFile ) odoc:WindowState := 1 // wdWindowStateMinimize > How do I minimize a document that already has been opened, without using oWord:Visible := .F. which minimizes ...
by Antonio Linares
Thu Jul 13, 2023 4:48 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Small Question about Word and FWH
Replies: 29
Views: 1150

Small Question about Word and FWH

Hello,

If I open a Word document in my application by using:

odoc := oWord:Documents:Open(cFile)

1. How do I open my document minimized?
2. How do I minimize a document that already has been opened, without using oWord:Visible := .F. which minimizes all my opened Word documents?

Thanks.
by driessen
Wed Jul 12, 2023 11:20 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Small Question about Word and FWH
Replies: 29
Views: 1150

Re: oWord:CentimetersToPoints( )

I just need to figure out what this error is:

Solo necesito averiguar qué es este error:

https://forums.fivetechsupport.com/viewtopic.php?f=6&t=43084&sid=4132bd3592f232a9b39f43dfc43e989c&sid=933f9771c33783191aabd62bdcb36e9e#p259210

Regards, saludos.
by karinha
Mon Apr 24, 2023 11:41 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: oWord:CentimetersToPoints( )
Replies: 4
Views: 275

Re: oWord:CentimetersToPoints() en xHarbour

Solo necesito averiguar qué es este error: I just need to figure out what this error is: ERRO! A ENTRADA DE AUTOTEXTO NÃO FOI DEFINIDA. ¡ERROR! LA ENTRADA DE AUTOTEXTO NO ESTÁ DEFINIDA. ERROR! AUTOTEXT ENTRY IS NOT DEFINED. Image: https://imgur.com/7J46lj6 https://i.imgur.com/7J4...
by karinha
Mon Apr 24, 2023 11:37 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: oWord:CentimetersToPoints() en xHarbour
Replies: 12
Views: 729

Re: oWord:CentimetersToPoints() en xHarbour

... PointToCentimeters(<n>)=>(<n>*28.35)FUNCTION Main()   LOCAL oWord, nCms   // Convert 2.5 centimeters to points   LOCAL nPts   oWord := WinWordObj()   oWord := CreateObject("Word.Application")  ...
by karinha
Mon Apr 24, 2023 11:18 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: oWord:CentimetersToPoints() en xHarbour
Replies: 12
Views: 729

Re: oWord:CentimetersToPoints( )

... PointToCentimeters(<n>)=>(<n>*28.35)FUNCTION Main()   LOCAL oWord, nCms   // Convert 2.5 centimeters to points   LOCAL nPts   oWord := WinWordObj()   oWord := CreateObject("Word.Application")  ...
by karinha
Mon Apr 24, 2023 11:14 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: oWord:CentimetersToPoints( )
Replies: 4
Views: 275

Re: oWord:CentimetersToPoints( )

Harbour/xHarbour

#xtranslate CentimetersToPoint(<n>)=>(<n>*28.35)
#xtranslate PointToCentimeters(<n>)=>(<n>/28.35)
by Natter
Mon Apr 24, 2023 10:47 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: oWord:CentimetersToPoints( )
Replies: 4
Views: 275

Re: oWord:CentimetersToPoints( )

Not Correct:
Code: Select all  Expand view
 oWord := WinWordObj():New()
 


This is correct:
Code: Select all  Expand view
 oWord := WinWordObj()
 


oWord:CentimetersToPoints( n ) works with Harbour, but fails with xHarbour with runtime error.

Better we calculate like this:
nPts := nCms * 28.35
by nageswaragunupudi
Sun Apr 23, 2023 9:05 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: oWord:CentimetersToPoints( )
Replies: 4
Views: 275

Re: oWord:CentimetersToPoints() en xHarbour

Ni usando:

Code: Select all  Expand view

   oWord := CreateObject("Word.Application.12")
 


NO Funciona. Mistério... jajajaja,

Regards, saludos.
by karinha
Sun Apr 23, 2023 5:20 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: oWord:CentimetersToPoints() en xHarbour
Replies: 12
Views: 729

Re: oWord:CentimetersToPoints() en xHarbour

Jimmy, on HARBOUR it works perfectly. You need to test it on XHARBOUR to understand. Definitivamente, el ERROR está en WIN32OLE.PRG: //---------------------------------------------------------------------------//METHOD New( uObj, cClass, cLicense ) CLASS TOleAuto   LOCAL oErr ...
by karinha
Sun Apr 23, 2023 4:54 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: oWord:CentimetersToPoints() en xHarbour
Replies: 12
Views: 729

Re: oWord:CentimetersToPoints() en xHarbour

Definitivamente, el ERROR está en WIN32OLE.PRG: //---------------------------------------------------------------------------//METHOD New( uObj, cClass, cLicense ) CLASS TOleAuto   LOCAL oErr   // Hack incase OLE Server already created and New() is attempted as an OLE Met...
by karinha
Sun Apr 23, 2023 4:42 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: oWord:CentimetersToPoints() en xHarbour
Replies: 12
Views: 729

Re: oWord:CentimetersToPoints() en xHarbour

I    oWord := WinWordObj():New()   oWord := CreateObject("Word.Application")  you did try to create 2 Instance :?: use only CreateObject("Word.Application") it work on my PC under ...
by Jimmy
Sun Apr 23, 2023 4:26 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: oWord:CentimetersToPoints() en xHarbour
Replies: 12
Views: 729
Next

Return to advanced search