Ron Cates Posted January 29, 2010 Posted January 29, 2010 Hi All, Here's my situation. I have a button to print fax or email an invoice along with several checkboxes for other documents that we may wish to include. For instance there is a checkbox to include a thank you letter (This is a jpeg copy of a signed letter in a container field) or we may wish to send a price list, etc. The way I have it set up now is by using multiple layouts each with a different combination of desired docs. So If I want to print an invoice it goes to a layout with just an invoice. If we want invoice and Thank You letter it goes to a layout with both the invoice and the thank you letter. Invoice, Thank You and Price List, yet another layout. The end result is I now have six different layouts all based on different combinations of documents to be printed, faxed or emailed. If I need to make a change to the invoice I have to change it in six different places and if we decide to ad another option then I will have to ad a bunch more layouts to cover each possible combination. Not a great solution I think. So I am looking for an alternative that might allow me to have just one layout for each and be able to combine them in whichever combination is desired for printing and such. Any suggestions would be greatly appreciated.. Thanks Ron
mr_vodka Posted January 29, 2010 Posted January 29, 2010 Why not have a separate layout for each type. Then depending on what was checked you can go to each layout and print. For example, lets say you have 3 flag fields ( number used as boolean set to 1 or empty ) then you can choose to print each section with your script. Something like: If [ FlagInv ] Go to Layout [ "Invoice" ] Print End If If [ FlagTY ] Go to Layout [ "Thank You" ] Print End If If [ FlagPrice ] Go to Layout [ "Price List" ] Print End If
Ron Cates Posted February 2, 2010 Author Posted February 2, 2010 For some reason when I thought of that I didn't think it would work. I just tried a small test and although it will work, there is a delay on each document while the printer resets for the next. Also, we currently fax using a printer that has a print to fax option and It stops to fax each layout individually which just won't work. Unfortunately I am just getting back to development on this project after our 4 month busy time. The task list is loaded and I think this one will have to go on the back burner to await a creative solution at a later time. Thanks for the help
mr_vodka Posted February 2, 2010 Posted February 2, 2010 You may be able to generate a PDF while appending each layout into one document. Then perhaps you can just print once.
Recommended Posts
This topic is 5408 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