Jump to content

Word Belgesi


sevcankonak
 Share

Recommended Posts

kintaronun yapmış oldugu listbox aramada çıkan sonuca tıklanınca word olarak açılmasını saglamak

[img]http://d1202.hizliresim.com/u/w/33fm7.png[/img]

osman yazan yere tıklayınca word belgesi açılması mümkünmü

Edited by sevcankonak
Link to comment
Share on other sites

Şu şekilde inputtaki metni Word dosyasına yazdırabilirsiniz. LuaCom plugini seçili olmalıdır:


[code]sMetin = Input.GetText("Input1")
oWordApp=luacom.CreateObject("Word.Application")
oDoc=luacom.CreateObject("Word.Document")
oWordApp.Visible = true;
oDoc.Content.Text = sMetin; [/code]

Link to comment
Share on other sites

[b]KintaRo yanlış anlamış o zaman :) Word dosyasının tam yolunu (Örn:"C:\Word.doc") item datasına yazdır veya farklı bi yere depola. Sonra dosya yolunu ordan alıp Shell.Execute kodu ile çalıştır. Şu an bilgisayarda ams yok. Onun için kod yazamayacağım.[/b]

Link to comment
Share on other sites

Aşağıdaki kodla herşeyi açtırırsın.


e_Selection = ListBox.GetSelected("ListBox1");

if e_Selection[1] == 1 then
page.jump (word belgesinin yolunu göster)

elseif e_Selection[1] == 2 then
page.jump (word belgesinin yolunu göster)

end

Link to comment
Share on other sites

[quote name='ycoban07' date='04 March 2012 - 11:14 ' timestamp='1330852485' post='1164803']
Aşağıdaki kodla herşeyi açtırırsın.


e_Selection = ListBox.GetSelected("ListBox1");

if e_Selection[1] == 1 then
page.jump (word belgesinin yolunu göster)

elseif e_Selection[1] == 2 then
page.jump (word belgesinin yolunu göster)

end
[/quote]

[b]Ne alaka ?[/b]

Link to comment
Share on other sites

[quote name='ycoban07' date='04 March 2012 - 11:14 ' timestamp='1330852485' post='1164803']
Aşağıdaki kodla herşeyi açtırırsın.


e_Selection = ListBox.GetSelected("ListBox1");

if e_Selection[1] == 1 then
page.jump (word belgesinin yolunu göster)

elseif e_Selection[1] == 2 then
page.jump (word belgesinin yolunu göster)

end
[/quote]
Get.Selected seçilenin numarasını aldın.İfle de yaptın diyelim (hepsine ayrı ayrı ifli yapı kullanmak ölüm olmasına rağmen)"Page.Jump(word dosyasının yolu)" işte burasının ne alaka olduğunu anlamadım.Bu komut proje içindeki sayfalar arası geçil için kullanılır.File.Open veya Baba_ dediği gibi Shell.Execute kullanılır.

Link to comment
Share on other sites

e_Selection = ListBox.GetSelected("ListBox1");

e_Selection zaten ListBox evrelerinde ListBox.GetSelected("ListBox1") in sonucunu verir, bu şekilde kullanmayın sadece e_Selection kullanmanız yeterli.

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...