Hello,
Can someone explain me this new function? Or provide us with an example?
Thanks.
#include "fivewin.ch"
//----------------------------------------------------------------------------//
function Main()
local aDocs := { "c:\fwh\manual\fwhmanual.docx", "c:\fwh\samples\cust.docx", "c:\fwh\samples\cust.xlsx" }
local oDlg, oFont, oBrw, oImage, oBrush
DEFINE FONT oFont NAME "ARIAL" SIZE 0,-18
DEFINE BRUSH oBrush FILE "c:\fwh\bitmaps\backgrnd\stone.bmp"
DEFINE DIALOG oDlg SIZE ScreenWidth() * 0.6, ScreenHeight() * 0.95 PIXEL ;
FONT oFont TRUEPIXEL TITLE "FWH 15.04: OFFICE THUMBNAIL VIEWER"
@ 20,20 XBROWSE oBrw SIZE 300,-20 PIXEL OF oDlg ;
DATASOURCE aDocs COLUMNS 1 HEADERS "Document" ;
CELL LINES NOBORDER
WITH OBJECT oBrw
:bChange := { || oImage:Refresh() }
:CreateFromCode()
END
@ 20,320 XIMAGE oImage SOURCE OfficeExtractImage( oBrw:Document:Value ) SIZE -20,-20 OF oDlg
oImage:SetBrush( oBrush )
ACTIVATE DIALOG oDlg CENTERED
RELEASE FONT oFont
RELEASE BRUSH oBrush
return nil
//----------------------------------------------------------------------------//
Stack Calls
===========
Time from start: 0 hours 0 mins 3 secs
Error occurred at: 29/04/2015, 15:46:53
Error description: Error BASE/1004 Message not found: TXBROWSE:DOCUMENT
Stack Calls
===========
Called from: .\source\function\HARBOUR.PRG => _CLSSETERROR( 244 )
Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:DOCUMENT( 8415 )
Called from: scicode.prg => (b)MAIN10( 433 )
Called from: .\source\classes\XIMAGE.PRG => TXIMAGE:REFRESH( 154 )
Called from: .\source\classes\WINDOW.PRG => (b)TWINDOW( 585 )
Called from: .\source\classes\WINDOW.PRG => TXIMAGE:SETBRUSH( 0 )
nageswaragunupudi wrote:I guess you might have made some changes in the source code provided above, very likely in the HEADERS clause.
Please compile and build exactly without changing the code. You may change the array of documents ofcourse.
Note:
oBrw:Document refers to column with header "Document"
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 114 guests