ronnie524 Posted December 9, 2004 Posted December 9, 2004 Hello all, Before i used to browse through my database full of invoices, and click on the button print to print a specific record I wanted. But now, for some reason I have to input the page range I want to print, otherwise it will print the one i input the previous record. I cannot figure it out, any help would be greatly appreciated... Many thanks :)
-Queue- Posted December 9, 2004 Posted December 9, 2004 What does your Print script look like and what are the settings for your Print Setup/Print steps?
ronnie524 Posted December 9, 2004 Author Posted December 9, 2004 I just use the script used on the script given on "sort/find/print"-on the scriptmaker. I think is something like- print[] Print Setup set to: Print-records being browsed Pages: from:__(eg32) to:__(eg32) Number of copies: 1 I am also using a networked printer .... hope this help
-Queue- Posted December 9, 2004 Posted December 9, 2004 Have you tried setting it to print Current Record instead of Records Being Browsed? You shouldn't need to worry about the page range.
ronnie524 Posted December 9, 2004 Author Posted December 9, 2004 Yes i did... but the same thing happens...
-Queue- Posted December 9, 2004 Posted December 9, 2004 Once you change the settings, open the script, close it, and select Replace next to the Print Setup option.
ronnie524 Posted December 9, 2004 Author Posted December 9, 2004 Once you change the settings, open the script, close it, and select Replace next to the Print Setup option. I don't quite get that ... i don't see any "replace"....
-Queue- Posted December 9, 2004 Posted December 9, 2004 When you close a script after it's already been created (by clicking OK not Cancel), if you have any import, export, sort, print, or find steps in your script, you will be prompted to Keep the saved options or Replace them with the most recently performed options.
ronnie524 Posted December 9, 2004 Author Posted December 9, 2004 I don't have steps on the print script... All i did was specify the button to print from the script menu. (Plain and simple script- didn't create any scripting )
-Queue- Posted December 9, 2004 Posted December 9, 2004 Oh, then each time you call it, it will use the most recently performed Print settings for that file. I would never print this way on Windows, since Print settings are only saved with Print Setup. I would print the way you want it to, then create a script with Print Setup [Restore, No dialog] and Print [ ], and attach it to the button.
ronnie524 Posted December 9, 2004 Author Posted December 9, 2004 I created the setup, but i still have to input the page I want instead of just clicking ok on the print window... see the attatched jpg image... hope this is a better explanation
-Queue- Posted December 9, 2004 Posted December 9, 2004 Well, if you have it set to print Current Record, then the Print Range will be ignored anyway. If you want to print more than one record, you will have to use Records Being Browsed and then enter the Print Range. And if the range changes each time, then you will have to manually enter it each time. And just in case you weren't aware, the Current Record is the record selected in Browse Mode, not the page that you might be on in Preview Mode. If you are on the fifth record, and you enter Preview Mode, it will show the first record as the first page, but the fifth record is the one that will actually be printed.
ronnie524 Posted December 9, 2004 Author Posted December 9, 2004 You are right, so you are saying there is nothing I could do, but to input range manually? :
-Queue- Posted December 9, 2004 Posted December 9, 2004 Not unless you want to save the found set's ids in a global, put the ids for the records you want to print in another global, create relationships from both globals to the id field and use Go to Related Record [show only related, "second_global_relationship"] to find only those you want to print, Print [ ], and Go to Related Record [show only related, "first_global_relationship"] to restore your original found set. This requires a layout that contains only the id field, and a layout to contain the the first global, using a script to Set Field [secondglobal; secondglobal & id & "
ronnie524 Posted December 9, 2004 Author Posted December 9, 2004 Thank you so much... very complex but I will give it a shot, gotta learn somehow .
Recommended Posts
This topic is 7346 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now