[fusionpro] RE: Help Creating an Exception Rule
can you create a graphic frame and create 4 resource files (your 4 pdf's) then create a switch graphic rule such as if version == A then return resourceA , if version == B then return resourceB if version == C then return resourceC if version == D then return resourceD > Date: Fri, 22 Jun 2007 22:44:40 -0700> Subject: [fusionpro] Help Creating an > Exception Rule> To: fusionpro@printplanet.com> From: [EMAIL PROTECTED]> > A > client recently supplied 4 completly different layouts, and one master> > database file which contains roughly 250 entries. The first field is> > "Version Code" which has either an A, B, C, or D for their values. I then> > have 4 PDFs created, named with their respected labels (A-D). I want to> > figure out a simple script that says to only return certain entries. For> > example, there are only about 25 D's. So for the D layout, I should only> end > with 25 pages, not 250.> > I know I can go in and create 4 different database > files, but I'd like to> figure out a script for this instead.> > Any help > would be greatly appreciated. Thank you.> > > +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- > Calling all FP Web > Users!> > Do you have a question or lots of knowledge to share about > FusionPro Web?> > If so, join our Printable Web to Print Users' Forum today!> > > Send email to [EMAIL PROTECTED] to find out how! > > +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-> > > --> Users of > FusionPro Desktop have unlimited free email support. Contact Printable > Support at [EMAIL PROTECTED] > --> View FusionPro Knowledge Base, FusionPro > Samples at> www.printable.com/vdp/desktop.htm> > --> You are currently > subscribed to fusionpro as: [EMAIL PROTECTED]> To unsubscribe send a blank > email to [EMAIL PROTECTED]> --> > > --> Note: All e-mail sent to or from this > address will be received or otherwise recorded by the e-mail recipients of > this forum. It is subject to archival, monitoring or review by, and/or > disclosure to someone other than the recipient. Our privacy policy is posted > on www.printplanet.com> --> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- Calling all FP Web Users! Do you have a question or lots of knowledge to share about FusionPro Web? If so, join our Printable Web to Print Users' Forum today! Send email to [EMAIL PROTECTED] to find out how! +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- -- Users of FusionPro Desktop have unlimited free email support. Contact Printable Support at [EMAIL PROTECTED] -- View FusionPro Knowledge Base, FusionPro Samples at www.printable.com/vdp/desktop.htm -- You are currently subscribed to fusionpro as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] -- -- Note: All e-mail sent to or from this address will be received or otherwise recorded by the e-mail recipients of this forum. It is subject to archival, monitoring or review by, and/or disclosure to someone other than the recipient. Our privacy policy is posted on www.printplanet.com --
[fusionpro] Help Creating an Exception Rule
A client recently supplied 4 completly different layouts, and one master database file which contains roughly 250 entries. The first field is "Version Code" which has either an A, B, C, or D for their values. I then have 4 PDFs created, named with their respected labels (A-D). I want to figure out a simple script that says to only return certain entries. For example, there are only about 25 D's. So for the D layout, I should only end with 25 pages, not 250. I know I can go in and create 4 different database files, but I'd like to figure out a script for this instead. Any help would be greatly appreciated. Thank you. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- Calling all FP Web Users! Do you have a question or lots of knowledge to share about FusionPro Web? If so, join our Printable Web to Print Users' Forum today! Send email to [EMAIL PROTECTED] to find out how! +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- -- Users of FusionPro Desktop have unlimited free email support. Contact Printable Support at [EMAIL PROTECTED] -- View FusionPro Knowledge Base, FusionPro Samples at www.printable.com/vdp/desktop.htm -- You are currently subscribed to fusionpro as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] -- -- Note: All e-mail sent to or from this address will be received or otherwise recorded by the e-mail recipients of this forum. It is subject to archival, monitoring or review by, and/or disclosure to someone other than the recipient. Our privacy policy is posted on www.printplanet.com --
[fusionpro] RE: Can I horizontally scale fonts?
Yes. The easiest way is to the use a tag with the "textwidth" type. For instance: Here is my text. You could also use a tag after the tag to scale the glyphs. However, the setwidth will automatically be reset to match the font size on the next tag. Dan +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- Calling all FP Web Users! Do you have a question or lots of knowledge to share about FusionPro Web? If so, join our Printable Web to Print Users' Forum today! Send email to [EMAIL PROTECTED] to find out how! +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- -- Users of FusionPro Desktop have unlimited free email support. Contact Printable Support at [EMAIL PROTECTED] -- View FusionPro Knowledge Base, FusionPro Samples at www.printable.com/vdp/desktop.htm -- You are currently subscribed to fusionpro as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] -- -- Note: All e-mail sent to or from this address will be received or otherwise recorded by the e-mail recipients of this forum. It is subject to archival, monitoring or review by, and/or disclosure to someone other than the recipient. Our privacy policy is posted on www.printplanet.com --
[fusionpro] RE: address line help
Hi Shane, You have two main problems here: One is to split off the "number" part of the address from the street name. The other is to convert abbreviations of street suffixes such as St., Ave., and Blvd. into their non-abbreviated equivalents. Each of these problems poses its own set of challenges. For splitting off the number, you face some issues of non-standardization, similar to the problems I mentioned in the thread about name capitalization. The "number" part of the address is not always just numbers, since some addresses can look like "34W56 Main St." So you can't just remove the number from the beginning. And sometimes the number part is more than one word, such as "24 1/2 Crowded Lane." As for expanding the street suffix abbreviations, that's also not quite straightforward. For one thing, the comprehensive list of official USPS street suffix abbreviations is very large: http://www.usps.com/ncsc/lookups/usps_abbreviations.html#suffix Or: http://www.usps.com/ncsc/lookups/abbr_suffix.txt This list may not include other informal abbreviations, and other conventions outside the U.S. Also, the address in your data may not include the street suffix at all, such as "17 N. Main," which can make it difficult, if not impossible, to determine whether or not the last word is indeed a suffix designation, let alone what the correct suffix should be if it's not specified. Furthermore, some addresses on rural routes and such may not have a suffix at all, and which may include a number at the end, such as "5566 Rural Route 34" or "9368 State Highway 20". In other cases, there may even be no number, street, or suffix at all, such as addresses in large buildings with their own ZIP codes, such as the Merchandise Mart here in Chicago. The address "Suite 470, The Merchandise Mart, Chicago, IL 60654" is perfectly valid. And of course, you may have addresses in your data which are simply P.O. boxes, in which case there is neither a street name nor a suffix, but the address is still obviously valid. In addition, if you're trying to "un-abbreviate" everything, you may also want to expand direction abbreviations (N, S, E, W, etc.) As you can see, this type of thing can be very complicated, and there are some fairly expensive solutions for just this kind of address validation and conversion on the market. That said, if you want to try to tackle this, you can make some assumptions that will cover *most* of the possibilities. For the number, you can assume that the first word which starts with a letter, and not a numeric digit, represents the street name. For the street suffix, you can just create a table of abbreviations and their replacements and assume that if you don't get a match, you can append the word "Street." And you can strip off any trailing period that's part of the abbreviation. Something like: var Address = "123 1/2 N. Main St."; var StreetNamePos = Address.search(/\b[A-Z]/gi); var StreetName = Address.substring(StreetNamePos); var StreetSuffixAbbrMap = { "St" : "Street", "Ave" : "Avenue", "Blvd" : "Boulevard", // Add ALL of the abbreviations from this page: // http://www.usps.com/ncsc/lookups/abbr_suffix.txt }; var foundSuffix = false; for (var i in StreetSuffixAbbrMap) { var re = RegExp("\\b" + i + "\\b", "gi"); if (StreetName.search(re) > -1) foundSuffix = true; StreetName = StreetName.replace(re, StreetSuffixAbbrMap[i]); } StreetName = StreetName.replace(/\.$/, ""); if (!foundSuffix) StreetName += " Street"; return StreetName; Note the comment that you would need to add all of the possible street suffix abbreviations to be comprehensive. You may still run into some of the problems I listed above as well. But this should be a workable "poor man's" solution. Dan +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- Calling all FP Web Users! Do you have a question or lots of knowledge to share about FusionPro Web? If so, join our Printable Web to Print Users' Forum today! Send email to [EMAIL PROTECTED] to find out how! +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- -- Users of FusionPro Desktop have unlimited free email support. Contact Printable Support at [EMAIL PROTECTED] -- View FusionPro Knowledge Base, FusionPro Samples at www.printable.com/vdp/desktop.htm -- You are currently subscribed to fusionpro as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] -- -- Note: All e-mail sent to or from this address will be received or otherwise recorded by the e-mail recipients of this forum. It is subject to archival, monitoring or review by, and/or disclosure to someone other than the recipient. Our privacy policy is posted on www.printplanet.com --
[fusionpro] Re: Can Callbacks be Nested?
David, Thank you! The "second thought" sounds very promising... we'll give it a try. As I mentioned, I already have an ExternalDataFileEx creating a summery sheet with all the relevant data for our xerox/bindery/ mailing departments. And I've already created a rule to recognize the chuck/group change from current record to previous record. It would just be so darn simple to be able to nest the OnNewOutputFile callback into the OnRecordStart (or OnRecordEnd) callback. Either way... I'll post our success... or failure. Ryan --- On Jun 22, 2007, at 12:58 PM, David Sweet wrote: Ryan, Just sort of thinking out loud here, but if you look at the file on the KnowledgeBase for the multiple Business Card, it has a method in its script to write records to a new file that you create in OnJobStart. If you augment this script to: 1) not be of a variable length but a specified "chunk"-length that you define; 2) as you are adding records, test for the change in your "file category" field; 3) when you change from one file-category to the next, continue the adding loop with blank records 4) repeat the loop for the next set of records until your entire input file is finished. On second thought, this may need a nested loop. Using the ExternalDataFileEx you can search through and determine the number of changes for your field category. The outer-loop would be this number of file-categories your script counted, while the inner-loop would contain your "chunk-defined" loop to append records and blanks. --- David A. Sweet Web Designer/Graphic Designer HKM Direct Market Communications A DirectConnectGroup Company +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- Calling all FP Web Users! Do you have a question or lots of knowledge to share about FusionPro Web? If so, join our Printable Web to Print Users' Forum today! Send email to [EMAIL PROTECTED] to find out how! +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- -- Users of FusionPro Desktop have unlimited free email support. Contact Printable Support at [EMAIL PROTECTED] -- View FusionPro Knowledge Base, FusionPro Samples at www.printable.com/vdp/desktop.htm -- You are currently subscribed to fusionpro as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] -- -- Note: All e-mail sent to or from this address will be received or otherwise recorded by the e-mail recipients of this forum. It is subject to archival, monitoring or review by, and/or disclosure to someone other than the recipient. Our privacy policy is posted on www.printplanet.com --
[fusionpro] Re: Can Callbacks be Nested?
Ryan, Just sort of thinking out loud here, but if you look at the file on the KnowledgeBase for the multiple Business Card, it has a method in its script to write records to a new file that you create in OnJobStart. If you augment this script to: 1) not be of a variable length but a specified "chunk"-length that you define; 2) as you are adding records, test for the change in your "file category" field; 3) when you change from one file-category to the next, continue the adding loop with blank records 4) repeat the loop for the next set of records until your entire input file is finished. On second thought, this may need a nested loop. Using the ExternalDataFileEx you can search through and determine the number of changes for your field category. The outer-loop would be this number of file-categories your script counted, while the inner-loop would contain your "chunk-defined" loop to append records and blanks. --- David A. Sweet Web Designer/Graphic Designer HKM Direct Market Communications A DirectConnectGroup Company -Original Message- From: Ryan Blackmer [mailto:[EMAIL PROTECTED] Sent: Friday, June 22, 2007 2:24 PM To: FusionPro Users Forum Subject: [fusionpro] Re: Can Callbacks be Nested? Thank Raul, Unfortunately... I was the original poster of "Splitting Records based on a Field in the data Body". Your suggestion does work and I currently use it or manually split the database depending on the number of total records. I simply want to automate the whole process since there are upwards of 30-50 groupings. Composing the same database 30-50 times would drive anyone crazy. I understand Dan's original suggested process but am having a difficult time with the last part. I somehow need to distill the data into a temp. file and insert empty records up to the maximum records per "chunk" or group. FusionPro would then skid or not compose the empty records. I understand the ExternalDataFileEx part. I already have a summery sheet based on the input file. So I guess the question should really be... How do I (or what is the javascript code to) insert the empty records into the temp file? Ryan +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- Calling all FP Web Users! Do you have a question or lots of knowledge to share about FusionPro Web? If so, join our Printable Web to Print Users' Forum today! Send email to [EMAIL PROTECTED] to find out how! +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- -- Users of FusionPro Desktop have unlimited free email support. Contact Printable Support at [EMAIL PROTECTED] -- View FusionPro Knowledge Base, FusionPro Samples at www.printable.com/vdp/desktop.htm -- You are currently subscribed to fusionpro as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] -- -- Note: All e-mail sent to or from this address will be received or otherwise recorded by the e-mail recipients of this forum. It is subject to archival, monitoring or review by, and/or disclosure to someone other than the recipient. Our privacy policy is posted on www.printplanet.com --
[fusionpro] RE: Mc - De - Mac - La - Mac
There's no rule you can write which will cover every possible case like this. Such is the folly in relying on computerized algorithms for spelling and grammar issues which do not always follow a set of logical rules, especially for things such as proper names. There are a lot of assumptions that we Westerners tend to make about proper names that others may not like. Some names, or parts of names, are not meant to be capitalized at all, such as Mies van der Rohe, and there are almost a limitless number of other exceptions to first-letter capitalization, such as Sam O'Neil, Jenny McCarthy, Beverly d'Angelo, Leonardo di Caprio, Don Alejandro de la Vega, and Werner von Braun, to name a few. Other names may have capitalization that's seemingly random, like "JosePhine" or "JimBob", which may not make sense to you or me, but the only person who can truly dictate the proper spelling and capitalization of a name is the owner. Capitalization becomes even more arbitrary with names of things that are not people, like for instance, the names JavaScript and FusionPro. The only thing you can really do is to follow the mantra, Know Thy Data. My best advice is to rework your job to not change the capitalizations of proper nouns at all. Keeping that huge caveat in mind, if you really must capitalize everything, you can *try* a couple of algorithms which will reduce the number of egregious problems. I posted a similar solution for exceptions to the ToTitleCase algorithm a couple of weeks ago: var text = "hi there CEO of the big corp."; var result = ToTitleCase(text); var Exceptions = [ "CEO", "CFO", "VP", "and", "the", "of", "to" ]; for (var i in Exceptions) { var re = RegExp("\\b" + Exceptions[i] + "\\b", "gi"); result = result.replace(re, Exceptions[i]); } return result; But that deals with entire words. This would replace prefixes like the type you describe: var text = "joe mcdonald macmillan laplace landry"; var result = ToTitleCase(text); var Prefixes = [ "Mc", "Mac", "De", "La" ]; for (var i in Prefixes) { var re = RegExp("\\b" + Prefixes[i] + "\\w", "g"); result = result.replace(re, function(w){return w.substring(0, w.length-1) + w.substring(w.length-1).toUpperCase()}); } return result; But that's still for "title case," and you're looking for exceptions to "all caps." So something like this would work: var text = "joe mcdonald macmillan laplace landry"; var result = ToUpper(text); var Prefixes = [ "Mc", "Mac", "De", "La" ]; for (var i in Prefixes) { var re = RegExp("\\b" + Prefixes[i] + "\\w", "gi"); result = result.replace(re, function(w){return Prefixes[i] + w.substring(w.length-1)}); } return result; But, note that those last two algorithms will catch all names starting with one of the prefixes, and will erroneously uncapitalize letters in a name like "Landry" or "Macintosh." I think the best logic for what you're describing is to look for words which already have a capital letter that's not at the first position in the original string, like so: var text = "Joe McDonald MacMillan LaPlace Landry"; var result = ToUpper(text); var Prefixes = [ "Mc", "Mac", "De", "La" ]; for (var i in Prefixes) { var re = RegExp("\\b" + Prefixes[i] + "[A-Z]", "g"); var pos = -1; var matches; while (matches = re.exec(text)) result = result.substring(0, matches.index) + matches[0] + result.substring(re.lastIndex); } return result; This, of course, assumes that the capitalization is correct in the original name. And it's hardly a universal solution, since it's limited to the number of prefixes you give it. And it still will not properly handle stand-alone uncapitalized words in names such as "van" or "de", but those could be handled with an exception list as in the first example above. You still won't ever get every possible case right, however. Again, my best advice is to leave proper nouns and names in their original format. Otherwise, no matter how many exceptions you add, you'll forever be getting complaints from a client that a name is not right. Here is an online article which attempts to solve this kind of problem: http://freejava.info/capitalize-english-names/ Note that it's in Java, which is a different language than JavaScript, but the general ideas are the same. Dan +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- Calling all FP Web Users! Do you have a question or lots of knowledge to share about FusionPro Web? If so, join our Printable Web to Print Users' Forum today! Send email to [EMAIL PROTECTED] to find out how! +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- -- Users of FusionPro Desktop have unlimited free email support. Contact Printable Support at [EMAIL PROTECTED] -- View FusionPro Knowledge Base, FusionPro Samples at www
[fusionpro] RE: Pages per record.
Hi Larry, You can insert the $pagenum and $pagecount variables into a text frame, but you can't access the values in a rule. Dan P.S. Please post only plain-text messages to the forum. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- Calling all FP Web Users! Do you have a question or lots of knowledge to share about FusionPro Web? If so, join our Printable Web to Print Users' Forum today! Send email to [EMAIL PROTECTED] to find out how! +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- -- Users of FusionPro Desktop have unlimited free email support. Contact Printable Support at [EMAIL PROTECTED] -- View FusionPro Knowledge Base, FusionPro Samples at www.printable.com/vdp/desktop.htm -- You are currently subscribed to fusionpro as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] -- -- Note: All e-mail sent to or from this address will be received or otherwise recorded by the e-mail recipients of this forum. It is subject to archival, monitoring or review by, and/or disclosure to someone other than the recipient. Our privacy policy is posted on www.printplanet.com --
[fusionpro] Can I horizontally scale fonts?
I have a client that I am building a template for whose font style is Goudy 10pt scaled horizontally 80% - is there anyway to do this? Eventually this will be a web template but right now I'm just trying to get the template built... Thanks for all your help! +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- Calling all FP Web Users! Do you have a question or lots of knowledge to share about FusionPro Web? If so, join our Printable Web to Print Users' Forum today! Send email to [EMAIL PROTECTED] to find out how! +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- -- Users of FusionPro Desktop have unlimited free email support. Contact Printable Support at [EMAIL PROTECTED] -- View FusionPro Knowledge Base, FusionPro Samples at www.printable.com/vdp/desktop.htm -- You are currently subscribed to fusionpro as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] -- -- Note: All e-mail sent to or from this address will be received or otherwise recorded by the e-mail recipients of this forum. It is subject to archival, monitoring or review by, and/or disclosure to someone other than the recipient. Our privacy policy is posted on www.printplanet.com --
[fusionpro] Pages per record.
Is there a way to count the pages per record if each record dictates whether or not there is an overflow page such in a financial statement? Each customer has a different amount of transactions, so 1 person could have 1 page and another have 4. I need to put a code on for the inserter to read a "page of" (1 of 3, 2 of 3, etc.) Thanks in advance. Larry Whiting Rastar Digital Marketing [EMAIL PROTECTED] T801-990-6421 C801-558-5316 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- Calling all FP Web Users! Do you have a question or lots of knowledge to share about FusionPro Web? If so, join our Printable Web to Print Users' Forum today! Send email to [EMAIL PROTECTED] to find out how! +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- -- Users of FusionPro Desktop have unlimited free email support. Contact Printable Support at [EMAIL PROTECTED] -- View FusionPro Knowledge Base, FusionPro Samples at www.printable.com/vdp/desktop.htm -- You are currently subscribed to fusionpro as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] -- -- Note: All e-mail sent to or from this address will be received or otherwise recorded by the e-mail recipients of this forum. It is subject to archival, monitoring or review by, and/or disclosure to someone other than the recipient. Our privacy policy is posted on www.printplanet.com --
[fusionpro] Collated Output
Hi! Does anyone know if I have a 2 page document (made from an 8 page saddle-stitch template) that I'm making into a large variable run, if there is an option either in the imposition program or the compose settings that will allow me collate the two pages? Thanks! +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- Calling all FP Web Users! Do you have a question or lots of knowledge to share about FusionPro Web? If so, join our Printable Web to Print Users' Forum today! Send email to [EMAIL PROTECTED] to find out how! +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- -- Users of FusionPro Desktop have unlimited free email support. Contact Printable Support at [EMAIL PROTECTED] -- View FusionPro Knowledge Base, FusionPro Samples at www.printable.com/vdp/desktop.htm -- You are currently subscribed to fusionpro as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] -- -- Note: All e-mail sent to or from this address will be received or otherwise recorded by the e-mail recipients of this forum. It is subject to archival, monitoring or review by, and/or disclosure to someone other than the recipient. Our privacy policy is posted on www.printplanet.com --
[fusionpro] Re: Can Callbacks be Nested?
Thank Raul, Unfortunately... I was the original poster of "Splitting Records based on a Field in the data Body". Your suggestion does work and I currently use it or manually split the database depending on the number of total records. I simply want to automate the whole process since there are upwards of 30-50 groupings. Composing the same database 30-50 times would drive anyone crazy. I understand Dan's original suggested process but am having a difficult time with the last part. I somehow need to distill the data into a temp. file and insert empty records up to the maximum records per "chunk" or group. FusionPro would then skid or not compose the empty records. I understand the ExternalDataFileEx part. I already have a summery sheet based on the input file. So I guess the question should really be... How do I (or what is the javascript code to) insert the empty records into the temp file? Ryan -- On Jun 22, 2007, at 10:37 AM, [EMAIL PROTECTED] wrote: What used for mine was one OnNewOutput File rule and an OnRecordStart rule. //OnNewOutput File //You can use a CurrentRecordNumber function or get a specific field value //CurRec = CurrentRecordNumber(); Data = new ExternalDataFileEx("CAData.csv", ","); Name = Data.GetFieldValue(2, "0"); FusionPro.Composition.outputFileName = "Group" + Name + ".pdf"; //OnRecordStart // say you only want the group "GroupA" on your database to compose and skip the other records if (Field("GroupName") != "GroupA") FusionPro.Composition.composeThisRecord = false; I may be going about this the wrong way but it seemed to work for me. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- Calling all FP Web Users! Do you have a question or lots of knowledge to share about FusionPro Web? If so, join our Printable Web to Print Users' Forum today! Send email to [EMAIL PROTECTED] to find out how! +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- -- Users of FusionPro Desktop have unlimited free email support. Contact Printable Support at [EMAIL PROTECTED] -- View FusionPro Knowledge Base, FusionPro Samples at www.printable.com/vdp/desktop.htm -- You are currently subscribed to fusionpro as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] -- -- Note: All e-mail sent to or from this address will be received or otherwise recorded by the e-mail recipients of this forum. It is subject to archival, monitoring or review by, and/or disclosure to someone other than the recipient. Our privacy policy is posted on www.printplanet.com --
[fusionpro] RE: skip record
Put some code like this into the OnRecordStart callback: if (Field("registered") == "x") FusionPro.Composition.composeThisRecord = false; Dan +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- Calling all FP Web Users! Do you have a question or lots of knowledge to share about FusionPro Web? If so, join our Printable Web to Print Users' Forum today! Send email to [EMAIL PROTECTED] to find out how! +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- -- Users of FusionPro Desktop have unlimited free email support. Contact Printable Support at [EMAIL PROTECTED] -- View FusionPro Knowledge Base, FusionPro Samples at www.printable.com/vdp/desktop.htm -- You are currently subscribed to fusionpro as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] -- -- Note: All e-mail sent to or from this address will be received or otherwise recorded by the e-mail recipients of this forum. It is subject to archival, monitoring or review by, and/or disclosure to someone other than the recipient. Our privacy policy is posted on www.printplanet.com --
[fusionpro] skip record
Hi, I was wondering if someone would be so kind and help me with this piece of code. I have a field called registered for 2007. They put a x in the field if the people are already registered. They do no want that record printed. Thanks in advance. Laura +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- Calling all FP Web Users! Do you have a question or lots of knowledge to share about FusionPro Web? If so, join our Printable Web to Print Users' Forum today! Send email to [EMAIL PROTECTED] to find out how! +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- -- Users of FusionPro Desktop have unlimited free email support. Contact Printable Support at [EMAIL PROTECTED] -- View FusionPro Knowledge Base, FusionPro Samples at www.printable.com/vdp/desktop.htm -- You are currently subscribed to fusionpro as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] -- -- Note: All e-mail sent to or from this address will be received or otherwise recorded by the e-mail recipients of this forum. It is subject to archival, monitoring or review by, and/or disclosure to someone other than the recipient. Our privacy policy is posted on www.printplanet.com --
[fusionpro] Re: Can Callbacks be Nested?
Ryan, I believe that you might need to use the following original post from Dan Korn and a later re-post from David Sweet . === Date: Fri, 17 Nov 2006 13:31:01 -0600 Author: "Dan Korn" <[EMAIL PROTECTED]> Subject: RE: Splitting Records based on a Field in the data Body: > Is it possible to split a Composed job > based on a field in the data and > have the resulting PDF's named using that field. Sorry for the delay in responding. I had to do some investigation on this one. The answer is that, yes, it's possible. There are several steps involved: First, check the "Output to multiple files" box on the Output tab of the Composition Settings dialog and set the number of records to 1. Then, create the OnNewOutputFile callback rule and, in it, set the FusionPro.Composition.outputFileName (or FusionPro.Composition.outputFileFullPathName) property, like so: FusionPro.Composition.outputFileName = Field("AccountHolder") + ".pdf"; Change the field name as appropriate for your data. If you compose thusly, you will see that you get one output file for each account holder. However, you'll only get one record's worth of data in each output file. So we need to compile data from multiple records to create a single output file for all the records pertaining to each account holder. This is where you can use an ExternalDataFileEx object to look ahead for data from other records. You can see an example of this under "How to return multiple records in the same output file" in the FusionPro Rules Editor Reference Guide. If you really want to have separate output pages within each account-holder specific output file for each input record, then you will need to do something a little bit different than in the example. My advice is to create a routine in OnJobStart to read in the original data file and create a new one with record "chunks" of specific sizes, which you can then use as your input file for the composition. In other words, you'll create, say, a hundred records for each account-holder, but only the number of actual records from your original input file will contain data, and the rest will be empty. You can then put some logic into OnRecordStart to set FusionPro.Composition.composeThisRecord = false for the extra empty records in each output file chunk. Set the number of records per output file in the Composition Settings to the same number of records you're creating for each account-holder, including the empty records. We are looking into adding the ability to start a new output file at any given time through JavaScript, without having to rework your input file, in a future version. But you'll have to use a strategy like the one outlined above for now. Dan === The second part of this response deals more with your request. Take a look at your data, and figure out the largest output "group" that you would have. Then adjust the ExternalDataFileEx file Dan refers to earlier in this posting, and allow for an even amount more than that record size. Take a look at the example in the KnowledgeBase for "repeat a Given Record a Number of Times" to give you a good example of how to create an External data file. In your OnRecordStart during composition, you would have something like.. if (Field("field_name") == "") FusionPro.Composition.composeThisRecord = false; This will skip any of your blank records. In your OnNewOutputFile you would set the name of that output file.. FusionPro.Composition.outputFileName = Field("field_name") + ".pdf"; hth David Sweet Variable Pre-Press Consolidated Graphics Group, Inc. === What used for mine was one OnNewOutput File rule and an OnRecordStart rule. //OnNewOutput File //You can use a CurrentRecordNumber function or get a specific field value //CurRec = CurrentRecordNumber(); Data = new ExternalDataFileEx("CAData.csv", ","); Name = Data.GetFieldValue(2, "0"); FusionPro.Composition.outputFileName = "Group" + Name + ".pdf"; //OnRecordStart // say you only want the group "GroupA" on your database to compose and skip the other records if (Field("GroupName") != "GroupA") FusionPro.Composition.composeThisRecord = false; I may be going about this the wrong way but it seemed to work for me. Raul === +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- Calling all FP Web Users! Do you have a question or lots of knowledge to share about FusionPro Web? If so, join our Printable Web to Print Users' Forum today! Send email to [EMAIL PROTECTED] to find out how! +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- -- Users of FusionPro Desktop have unlimited free email support. Contact Printable Support at [EMAIL PROTECTED] -- View FusionPro Knowledge Base, FusionPro Samples at www.printable.com/vdp/desktop.htm -- You are currently subscribed to fusionpro as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] -- -- Note: All e-mail sent to or from this address will be received or otherwise recorded by the e-mail recipients of this f
[fusionpro] Can Callbacks be Nested?
Is it possible for either an OnJobStart or OnRecordStart callback trigger an OnNewOutputFile callback? I'm "trying" to split the quantity of records from the main database into each sub-group during composition... automatically (i.e. all "Group A" records are composed and saved in "Group A" output file). Each sub-group does NOT have the same quantity of records. I have researched the forum at length and can't seem to find a clean solution to this. Any help would be greatly appreciated! Ryan +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- Calling all FP Web Users! Do you have a question or lots of knowledge to share about FusionPro Web? If so, join our Printable Web to Print Users' Forum today! Send email to [EMAIL PROTECTED] to find out how! +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- -- Users of FusionPro Desktop have unlimited free email support. Contact Printable Support at [EMAIL PROTECTED] -- View FusionPro Knowledge Base, FusionPro Samples at www.printable.com/vdp/desktop.htm -- You are currently subscribed to fusionpro as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] -- -- Note: All e-mail sent to or from this address will be received or otherwise recorded by the e-mail recipients of this forum. It is subject to archival, monitoring or review by, and/or disclosure to someone other than the recipient. Our privacy policy is posted on www.printplanet.com --
[fusionpro] Re: Mc - De - Mac - La - Mac
Did you ever get any resolution to this issue. I ask because I am having a similar issue. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- Calling all FP Web Users! Do you have a question or lots of knowledge to share about FusionPro Web? If so, join our Printable Web to Print Users' Forum today! Send email to [EMAIL PROTECTED] to find out how! +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- -- Users of FusionPro Desktop have unlimited free email support. Contact Printable Support at [EMAIL PROTECTED] -- View FusionPro Knowledge Base, FusionPro Samples at www.printable.com/vdp/desktop.htm -- You are currently subscribed to fusionpro as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] -- -- Note: All e-mail sent to or from this address will be received or otherwise recorded by the e-mail recipients of this forum. It is subject to archival, monitoring or review by, and/or disclosure to someone other than the recipient. Our privacy policy is posted on www.printplanet.com --
[fusionpro] Determine height and width of a graphic
I would like to be able to read in a graphic variable (to be later used as an inline graphic), have fusionpro determine if it is a landscape or a portrait graphic (length greater than width or not) so I can place it in a proper sized box with text below it. Is there any way of determining the actual "point-size" length or width dimension of a graphic during composition? David A. Sweet HKM Direct Marketing Communications +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- Calling all FP Web Users! Do you have a question or lots of knowledge to share about FusionPro Web? If so, join our Printable Web to Print Users' Forum today! Send email to [EMAIL PROTECTED] to find out how! +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- -- Users of FusionPro Desktop have unlimited free email support. Contact Printable Support at [EMAIL PROTECTED] -- View FusionPro Knowledge Base, FusionPro Samples at www.printable.com/vdp/desktop.htm -- You are currently subscribed to fusionpro as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] -- -- Note: All e-mail sent to or from this address will be received or otherwise recorded by the e-mail recipients of this forum. It is subject to archival, monitoring or review by, and/or disclosure to someone other than the recipient. Our privacy policy is posted on www.printplanet.com --
[fusionpro] address line help
I have a mailing list with typical address1 (123 Smith Ave) - In my template I want to have a line that uses the street name and the full street type in a paragraph. Example: "Make your home stand out from all the others on Smith Avenue" Does anyone know a good rule that will strip out the house # as well as spell out the street type? Shane Gillies Design Consultant The Allegan Group 136 Brady Street Allegan, MI 49010 269.673.5476 Fx 269.673.7329 www.allegangroup.com concept | marketing | design | print | mailing +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- Calling all FP Web Users! Do you have a question or lots of knowledge to share about FusionPro Web? If so, join our Printable Web to Print Users' Forum today! Send email to [EMAIL PROTECTED] to find out how! +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- -- Users of FusionPro Desktop have unlimited free email support. Contact Printable Support at [EMAIL PROTECTED] -- View FusionPro Knowledge Base, FusionPro Samples at www.printable.com/vdp/desktop.htm -- You are currently subscribed to fusionpro as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] -- -- Note: All e-mail sent to or from this address will be received or otherwise recorded by the e-mail recipients of this forum. It is subject to archival, monitoring or review by, and/or disclosure to someone other than the recipient. Our privacy policy is posted on www.printplanet.com --