View Full Version : Link Listbox to another????
Audio Force
10-01-2004, 11:24 AM
Hi
First thanks for this great forum that helps alot.. I have 2 questions..
in the project i am doing, i have like a list of Countries in a listbox, that when someone should go and choose it a country of that listbox, its ask him for a french or english document in a list box, when he click on the language he/she wants, it launch a pdf that i want to the acrobat reader to be on the same cd that has all my data
my question is, how i can do the second listbox on the same page of the first one that appear when he choose the country? is it possible??
and how i can make acrobat reader run for these pdfs without that the user of my cd needs to install it or to have it installed on the machine he is using..
my last question.. and is there a possible way i can add a print button to each page that belong to each section ???
Thank you
and waiting to hear from you soon
Appreciated...
sside
10-01-2004, 12:35 PM
Hello Audio Force
Question1
Set visible not selected at the attributes of the second listbox that you want want to be visible only after you have selected country in the first listbox Insert that code in the On Select event of the first listbox;
ListBox.SetVisible("ListBox2", true);
ListBox2 name here in the code has to correspond with your listbox name.
Question2
If i understand it correctly, If you open a pdf file it will open with the standard viewer. If user has no acrobat reader then you can solve it this way;
1-Project dependencies
2-Set a button on your page letting user know that the files are pdf and he need acrobat reader and by clicking that button user can install acrobat reader.
If i understand you correctly, if you want pdf files to be opened even if the user has no acrobat reader or etc, i dont see it happening.
Question3
If i understand it correctly, you may place as many buttons to print in as many pages as it pleases you; this is all that you need
File.Print("AutoPlay\\Docs\\MyText.txt");
This is just a hint, you must adapt the code the way it fits in your project.
Hope it helps
Sside
Audio Force
10-01-2004, 02:40 PM
SSide,
thank you so much for the fast reply
thx for the listbox problem i think that solve it, the second thing i meant, many ppl here ive read from them topic that there is a way u can make acrobat reader runs from your cd that has the data without requirement of installing it on the machine of the user who is browsing.. thats what i was asking how i can do that ?
and i still have problem with the print part, because, i dont want to print text file actually, i wanna print the data that ive already installed in the pages in AM5 , like ive fillin my section with text files, that i want ppl to print any pages in my presentation under any section they need.. is that possible?
Thanks again for your help... i appreciate it
This Forums Rocks...
Audio Force
10-01-2004, 02:43 PM
one more thing in the listbox...
as i mentioned before because i was trying it now.. i have like list of countries and then from this list box comes another listbox for user selection of 2 languages to choose from.. how do i link both together??? and to link the last listbox at the end to the pdf..
is there a script i can use for all this amount of data, cuz i will b linking all countries :(
Thanks again
sside
10-01-2004, 03:00 PM
I'm making a litle example for you
sside
10-01-2004, 03:25 PM
Here you have a little example If i have understood you right
The printing part i don't understand. What data do you want to print?
Sside
longedge
10-01-2004, 06:07 PM
You can run Acrobat Reader directly from your finished CD and make it load a pdf. I'm not quite sure whether it would be wise to try to print the pdf all in the same set of actions. Better to open it and let the user print it from Reader I would suggest.
IIRC there is an issue that has been mentioned in another thread about licence agreements prohibiting you from doing this ( running it directly from CD ) now although I have certainly done this succesfully in the past.
This thread (http://www.indigorose.com/forums/showthread.php?t=8522&highlight=acrobat+reader) and this thread (http://www.indigorose.com/forums/showthread.php?t=8479&highlight=acrobat+reader) both mention the subject besides several more.
Audio Force
10-04-2004, 09:23 AM
SSide thx for all that help appreciated, as well as longedge
i couldnt run the example u gaved me cuz i dont have that plugin for the winbutton u added :(
is there anyway i can run it without that plugin so i understand it?
Thanks again
Your help and support are my saver
sside
10-04-2004, 10:35 AM
Here you have the same example with normal button
The code is at button onClick event
Sside
Audio Force
10-04-2004, 03:03 PM
SSIDE
Man that was more than what i wanted even :yes ;) :yes
Specially the script is wow, thanks alot man
I appreciate it :)
You made my day
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.