December 9, 200421 yr 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 :)
December 9, 200421 yr What does your Print script look like and what are the settings for your Print Setup/Print steps?
December 9, 200421 yr Author 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
December 9, 200421 yr Have you tried setting it to print Current Record instead of Records Being Browsed? You shouldn't need to worry about the page range.
December 9, 200421 yr Once you change the settings, open the script, close it, and select Replace next to the Print Setup option.
December 9, 200421 yr Author 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"....
December 9, 200421 yr 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.
December 9, 200421 yr Author 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 )
December 9, 200421 yr 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.
December 9, 200421 yr Author 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
December 9, 200421 yr 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.
December 9, 200421 yr Author You are right, so you are saying there is nothing I could do, but to input range manually? :
December 9, 200421 yr 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 & "
December 9, 200421 yr Author Thank you so much... very complex but I will give it a shot, gotta learn somehow .
Create an account or sign in to comment