Jump to content

Listbox Pdf Ilişkisi


bitmez13
 Share

Recommended Posts

djonur 007 nin resimlerle ilgili projesini pdf şeklinde değiştirdim
ama bir yerde hata veriyor

On Preload:

pdf.SetVisible("pdf1", false);


On Show:

tFolder = Folder.Find("personel", "*", false, nil);
for a in pairs(tFolder) do
ComboBox.AddItem("ComboBox1", String.SplitPath(tFolder[a]).Filename, tFolder[a]);

ComboBox.SetSelected("ComboBox1", 1)
end



ComboBox On Select:

nSelected = ComboBox.GetSelected(this)
sFolder = ComboBox.GetItemData(this,nSelected)
tFile = File.Find(sFolder, "*", true, true, nil, nil)
ListBox.DeleteItem("ListBox1", -1)
for a in pairs(tFile) do
ListBox.AddItem("ListBox1",String.SplitPath(tFile[a]).Filename, tFile[a])
tUzanti = String.SplitPath(tFile[a]).Extension
if (tUzanti == ".db") then -----Klasörler içinde istenmeyen uzantıları gizliyoruz. Eğer daha fazla varsa [if (tUzanti == ".db") or (tUzanti == ".asd") then] şeklinde or bağlacı ile gizleyebilirsin.
ListBox.DeleteItem("ListBox1", a)
end
end




ListBox On Select:


tSelected = ListBox.GetSelected("ListBox1")
sData = ListBox.GetItemData("ListBox1", tSelected[1])


tSize = pdf.GetFileInfo(sData)
pdf.SetProperties("pdf1", {Width=tSize.Width, Height=tSize.Height});

pdf.Load("pdf1", sData)
pdf.SetVisible("pdf1", true)


pdf leri göstermiyor nerde hata var yardımcı olursanız sevinirim Edited by bitmez13
Link to comment
Share on other sites

Şimdi farkettim, combobox on select evresindeki

[quote]tFile = File.Find(sFolder, "*", true, true, nil, nil)[/quote]

kodu

[quote]tFile = File.Find(sFolder, "*.pdf", true, true, nil, nil)[/quote]

ile değiştirirseniz o uzantı gizle koduna gerek kalmaz.

Link to comment
Share on other sites

LuaCOM ile excel ve word'e veri aktarımı yapılabilir ama onların içindeki verileri alıp AMS'de gösterilebileceğini sanmıyorum. IR Forum'a da baktım öyle bir şey göremedim. Ama bir dönüştürücü bulup command line ile belgeleri txt ya da html'e çevirip öyle okutturabilirsin.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...