XPDFViewer not visible on Win 10

Deploying to Windows? Utilizing VB Script execution? This is the place to ask Windows-specific questions.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
djkesler
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 55
Joined: Tue Jun 01, 2010 10:37 pm

XPDFViewer not visible on Win 10

Post by djkesler » Sun May 13, 2018 3:51 pm

Is there something I haven't gotten about XPDFViewer on Win 10?
This code works great on Mac, however the viewer never becomes visible on Win.

on mouseup
put basepath&"/entryforminstructions.pdf" into fn1
XPDFViewer_Open "instructions", the windowID of this stack
XPDFViewer_Set "instructions", "rect", (10, 64, 789, 542)
XPDFViewer_Set "instructions","fileName",fn1
XPDFViewer_Set "instructions","visiblity",true
XPDFViewer_Set "instructions","hscrollbar",false
XPDFViewer_Set "instructions","vscrollbar",true
XPDFViewer_Zoom "instructions","width"
XPDFViewer_GoToPage "instructions", "first"
show grp "Instructions"
end mouseup

This is the first time I have used the XPDFViewer.

Thanks for any help.

David K.

djkesler
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 55
Joined: Tue Jun 01, 2010 10:37 pm

Re: XPDFViewer not visible on Win 10

Post by djkesler » Fri Jul 13, 2018 5:03 pm

The problem is with the code.

in the XPDFViewer_Set you have used "visibility" rather than "visible" as the property name.

I have no idea why it works in Mac. Maybe "visible" is "true" is the default in Mac.

Post Reply

Return to “Windows”