sevcankonak Posted February 28, 2012 Share Posted February 28, 2012 hayırlı akşamlar arkadaşlar ams ile word belgesi arasında ilişki kurabilirmiyiz acama Quote Link to comment Share on other sites More sharing options...
narexc Posted February 28, 2012 Share Posted February 28, 2012 NAsıl Bir İlişki ? Yani Ne Yapmak İstiyorsun ? Quote Link to comment Share on other sites More sharing options...
sevcankonak Posted February 28, 2012 Author Share Posted February 28, 2012 (edited) 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 February 28, 2012 by sevcankonak Quote Link to comment Share on other sites More sharing options...
KintaRo Posted February 29, 2012 Share Posted February 29, 2012 Ş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] Quote Link to comment Share on other sites More sharing options...
DivaneTR Posted February 29, 2012 Share Posted February 29, 2012 [b]Elbetteki mümkündür. Shell.Execute ile çalıştırabilirsin.[/b] Quote Link to comment Share on other sites More sharing options...
KintaRo Posted February 29, 2012 Share Posted February 29, 2012 ben olayı yanlış mı anladım acaba Quote Link to comment Share on other sites More sharing options...
DivaneTR Posted February 29, 2012 Share Posted February 29, 2012 [b]Olabiler,Sonuçta çözümü var. [/b] Quote Link to comment Share on other sites More sharing options...
sevcankonak Posted March 1, 2012 Author Share Posted March 1, 2012 Demek istedigim aramada çıkan sonuca tıklandıgında seçili word belgesi açılması sıfırdan word belgesi açılmasın benim belirtiğim isimli word açılması lazım teşekkürler Quote Link to comment Share on other sites More sharing options...
DivaneTR Posted March 1, 2012 Share Posted March 1, 2012 [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] Quote Link to comment Share on other sites More sharing options...
ycoban07 Posted March 4, 2012 Share Posted March 4, 2012 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 Link to comment Share on other sites More sharing options...
DivaneTR Posted March 4, 2012 Share Posted March 4, 2012 [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] Quote Link to comment Share on other sites More sharing options...
NotToday Posted March 4, 2012 Share Posted March 4, 2012 [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. Quote Link to comment Share on other sites More sharing options...
ycoban07 Posted March 4, 2012 Share Posted March 4, 2012 kodu yanlış yazmışım. file open (...) olacaktı. Quote Link to comment Share on other sites More sharing options...
KintaRo Posted March 5, 2012 Share Posted March 5, 2012 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.