I'm attemping to call a .pdf file from the pop-up plug and was wondring what I was doing wrong.
-- Show a popup menu at the coordinates of a lable object called "Label1"
tblPos = Label.GetPos("Label1");
tblSize =Label.GetSize("Label1");
x = tblPos.X;
y = tblPos.Y + tblSize.Height;
tblMenu =
{
{text="Price Sheet",type=0,checked=false,enabled=true},
{text="Countertop",type=0,checked=false,enabled=tr ue},
};
strSelected = PopupMenu.Show(tblMenu,x,y,PopupMenu.HALIGN_LEFT,P opupMenu.VALIGN_TOP);
if (strSelected ~= "CANCELLED") then
path_short = File.GetShortName(_SourceFolder);
File.Run("Acrobat 6.1\\Reader\\AcroRd32.exe", "AutoPlay\\Docs\\(strSelected)", "", SW_SHOWNORMAL, false);
end
Reader starts up great but can't read the .pdf!
-- Show a popup menu at the coordinates of a lable object called "Label1"
tblPos = Label.GetPos("Label1");
tblSize =Label.GetSize("Label1");
x = tblPos.X;
y = tblPos.Y + tblSize.Height;
tblMenu =
{
{text="Price Sheet",type=0,checked=false,enabled=true},
{text="Countertop",type=0,checked=false,enabled=tr ue},
};
strSelected = PopupMenu.Show(tblMenu,x,y,PopupMenu.HALIGN_LEFT,P opupMenu.VALIGN_TOP);
if (strSelected ~= "CANCELLED") then
path_short = File.GetShortName(_SourceFolder);
File.Run("Acrobat 6.1\\Reader\\AcroRd32.exe", "AutoPlay\\Docs\\(strSelected)", "", SW_SHOWNORMAL, false);
end
Reader starts up great but can't read the .pdf!
Comment