hello, everybody,
I want to be able to choose a pdf file in my documents that appears in a rectangleobject an then send to a database, does somebody knows the right acctioncommands
thank you
Moderator: Neosoft Support
zina wrote:hello, everybody,
I want to be able to choose a pdf file in my documents that appears in a rectangleobject an then send to a database, does somebody knows the right acctioncommands
thank you
FileList "[PDFfolder]\*.pdf" "Files" "[PDFList]"
pdfOpen "[SelectedFileName]" "AutoDisplay"
FileOpenBox "Kies een bestand" "Pdf Files|*.pdf;" "" "[PDFlist]" ""
If "[PDFlist]" "<>" ""
SetVar "[Haakje.Hakenkledingkinderen.Uitleg]" "[PDFlist]"
EndIf
pdfOpen "[PDFlist]" "Rec1"
I can choose a pdf file, and it appears in the rectangel object, it also goes into the database
but when i add the next record and i go back to the previous record
the pdf changed
I want record one with pdf one and record two with record two and so one
ExtractFileName "[PDF]" "[PDFFileNameOnly]"
FileCopy "[PDF]" "[PubDir]PDF\[PDFFileNameOnly]"
SETVAR "[DB.TABLE.PDFfilename]" "[PDFFileNameOnly]"
[PubDir]PDF\[DB.TABLE.PDFName]
ExtractFileName "[PubDir]Teksten" "[PDFFileNameOnly]"
FileCopy "[PubDir]Teksten" "[PubDir]Teksten\[PDFFileNameOnly]"
SETVAR "[Haakje.Hakenkledingkinderen.Uitleg]" "[PDFFileNameOnly]"
[PubDir]Teksten\[Haakje.Hakenkledingkinderen.Uitleg]
NBW Publication Source File
(C)2014 NeoSoft Corp.
Title=Untitled NeoBook Publication
Language=US
NeoBookVer=5,80
ScreenColors=16777216
ScreenWidth=1500
ScreenHeight=850
BkndColor=0
ScreenAutoSize=Yes
LinkColor=16711680
WindowStyle=0
WindowOrder=0
WindowPos=0
WindowProps=31
BiDiMode=0
UseUpdateTimer=Yes
ReturnTime=60
ShapeTransColor=536870912
SplashProps=3
CompileType=0
MediaType=0
FilesIncluded=1
FontsIncluded=2
CopyExternalFiles=No
SetupMedia=3
SetupInstDir=C:\MyProgram
SetupTitle=Setup
SetupColors=16711680|0|65535
VersionMajor=1
VersionMinor=0
VersionRelease=0
VersionBuild=0
ReqExLevel=1
CustomFontName=Arial
CustomFontSize=9
CustomFontStyle=0
CustomCharset=1
CacheSize=30
ExtractOp=132
L_OK=OK
L_CANCEL=Cancel
L_YES=Yes
L_NO=No
L_CLOSE=Close
L_ERRORTITLE=Error
L_FINDTITLE=Find
L_FINDPROMPT=Find &What
L_FINDFIRST=&Find First
L_FINDNEXT=Find &Next
L_FINDERROR=Search text not found.
L_PWORDTITLE=Password required
L_PWORDMSG=Before continuing, you must first|enter the correct password.
L_PWORDPROMPT=&Password:
L_PWORDERROR=That's not the right password!
L_MEDIAERROR=In order to play this type of file you must install|the appropriate multimedia hardware and/or|software.
L_INTERNETERROR=Unable to locate Internet Browser software.
L_ABORTFUNCTION=Do you want to cancel this function?
L_EXTRACTERROR=This file could not be extracted and cannot be played.
L_INSTDIRPROMPT=Please enter the drive and directory where you would like this program to be installed. To accept the default drive and directory, simply press Enter.
L_INSTFOLDERPROMPT=Do you wish to create a program folder?
L_INSTRUNPROMPT=Do you want to run
L_INSTDISKPROMPT=Please insert disk #
L_INSTDISKERROR=That's not the correct disk, try again.
L_INSTGENERROR=The installation has terminated.
L_INSTEXITPROMPT=Do you really want to cancel the installation?
L_INSTWINTITLE=Setup
L_INSTPROGTITLE=Extracting Files...
L_SENDEMAIL=Sending Mail...
L_MAILSERVER=Please enter the name of your outgoing email server:
L_COPY=Copy to Clipboard
L_SELECTALL=Select All
L_DONWLOADFILE=Downloading: %s
L_PLEASEWAIT=Please wait...
TrayMenuBegin
MenuName=TrayOpen
MenuText=Open
MenuState=3
MenuKey=0
MenuAction=SetVar "[WindowState]" "Normal"
MenuName=TrayExit
MenuText=Exit
MenuState=3
MenuKey=0
MenuAction=Exit "" ""
MenuEnd
MasterPage
NewPage=New Page
PageStyle=0
PageColor=16777215
PageGradient1=16711680
PageGradient2=255
PageGradientDir=1
WallpaperStyle=0
ObjectType=21
Name=PDFViewer_Container
X=0
Y=100
W=1500
H=750
Anchor=5
LineColor=8421504
LineWidth=0
LineStyle=0
FillColor=44065832
FillPattern=1
FillMode=Yes
TabOrder=3
HMargin=0
VMargin=0
ContainerBegin
ObjectType=14
Name=PDFViewer_WebBrowser
X=0
Y=0
W=1500
H=750
Anchor=5
FileName=[PDFBestand]
VarName=[PDFViewer_WebBrowserStatus]
TitleVarName=[PDFViewer_WebBrowserTitle]
URLVarName=[PDFViewer_WebBrowserAddr]
LineColor=8421504
LineWidth=2
LineStyle=0
FillColor=44065832
FillPattern=1
FillMode=Yes
Font=Arial
FontSize=9
FontStyle=0
FontCharset=1
TextColor=10445864
TabOrder=0
ContainerEnd
ObjectType=21
Name=Menu_Container
X=0
Y=0
W=1500
H=100
Anchor=1
LineColor=8421504
LineWidth=0
LineStyle=0
FillColor=44065832
FillPattern=1
FillMode=Yes
TabOrder=1
HMargin=0
VMargin=0
ContainerBegin
ObjectType=3
Name=OpenANDsavePDfbestand_PushButton
X=0
Y=0
W=300
H=100
Anchor=3
Text=Open PDF bestand en sla op in PubDir/Teksten
Align=2
ImageStyle=0
BevelWidth=0
XPTheme=Yes
ObjAction=FileOpenBox "Open PDF file" "PDF|*.pdf" "" "[PDF_File]" ""¶ExtractFileName "[PDF_File]" "[FileNameOnly]"¶FileCopy "[PDF_File]" "[PubDir]Teksten\[FileNameOnly]"¶SETVAR "[Haakje.Hakenkledingkinderen.Uitleg]" "[FileNameOnly]"
LineColor=8421504
LineWidth=0
LineStyle=0
FillColor=44065832
FillPattern=1
FillMode=Yes
Font=Arial
FontSize=9
FontStyle=0
FontCharset=1
TextColor=10445864
TabOrder=0
ObjectType=21
Name=BekijkPDF_Container
X=1070
Y=0
W=430
H=100
Anchor=4
LineColor=8421504
LineWidth=0
LineStyle=0
FillColor=44065832
FillPattern=1
FillMode=Yes
TabOrder=1
HMargin=0
VMargin=0
ContainerBegin
ObjectType=3
Name=OpenPDF2_Button
X=0
Y=50
W=430
H=50
Anchor=1
Text=2. Bekijk PDF bestand in PDF programma
Align=2
ImageStyle=0
BevelWidth=0
XPTheme=Yes
ObjAction=Run "[PubDir]Teksten/[Haakje.Hakenkledingkinderen.Uitleg]" "" "Normal" "" ""
LineColor=8421504
LineWidth=0
LineStyle=0
FillColor=44065832
FillPattern=1
FillMode=Yes
Font=Arial
FontSize=9
FontStyle=0
FontCharset=1
TextColor=10445864
TabOrder=0
ObjectType=3
Name=OpenPDF1_Button
X=0
Y=0
W=430
H=50
Anchor=1
Text=1. Bekijk PDF bestand via WebBrowserObject
Align=2
ImageStyle=0
BevelWidth=0
XPTheme=Yes
ObjAction=SETVAR "[PDFBestand]" "[PubDir]Teksten/[Haakje.Hakenkledingkinderen.Uitleg]"
LineColor=8421504
LineWidth=0
LineStyle=0
FillColor=44065832
FillPattern=1
FillMode=Yes
Font=Arial
FontSize=9
FontStyle=0
FontCharset=1
TextColor=10445864
TabOrder=1
ContainerEnd
ContainerEnd
Return to NeoBook Action Commands
Users browsing this forum: No registered users and 0 guests