Jump to content

DCS

Registered Users - Approved
  • Posts

    13
  • Joined

Converted

  • FusionPro Products
    No

DCS's Achievements

Rookie

Rookie (2/14)

  • First Post Rare
  • Collaborator Rare
  • Conversation Starter Rare
  • Week One Done
  • One Month Later

Recent Badges

10

Reputation

  1. Thanks for everyone's help on this.... One more question - Is there any way to tell FP to only use certain pages from the PDF. eg. pages 2-12 Thanks Mike
  2. I had already tried adding the FusionPro.Composition.StartNewStack() didin't work... Is there a place I should put it (within the brackets, outside)? I will try your 2nd suggestion... where should I put that? Thanks Mike
  3. So how would I get a slip sheet before every file written using this code if (FieldChanged("WelcomePackageCode")) { outpath = "c:\\Files\\Jan 14 Kits\\Mailing\\FS Labels\\" + Field("WelcomePackageCode") + "\\"; filename = Field("WelcomePackageCode"); outfile = outpath + filename; FusionPro.Composition.OpenNewOutputFile(outfile + "." + FusionPro.Composition.outputFormatExtension); } Also, Can I get the slipsheet to impose like the rest of the file thanks Mike
  4. The latter.... When I use my imposition file I get this error: "The number of records requested in a chunk is not compatible with the imposition setting. The number of records in a chunk has been adjusted" as well as it not writing the proper file name and putting it into proper folder. Once again, thanks for all your help Mike
  5. here is my code for a onrecordstart rule. It works perfectly (thanks to everyone at PTI and the user community) What I was wondering is it possible to add my imposition file (.fpi) and have it run the correct imposition on the file it makes or am I stuck with a 1 out file? Thanks Mike if (FieldChanged("WelcomePackageCode")) { outpath = "c:\\Oscar Files\\Jan 9 Kits\\Mailing\\FS Labels\\" + Field("WelcomePackageCode") + "\\"; filename = Field("WelcomePackageCode"); outfile = outpath + filename; FusionPro.Composition.OpenNewOutputFile(outfile + "." + FusionPro.Composition.outputFormatExtension); }
  6. I've got 2 things to say 'bout that.... 1. DOH!!!! 2. LOL Mike
  7. thanks for the help once again.... This is what I have and I am getting this error: OnNewOutpuFile, Line 19: Syntax Error: missing ) after argument list here is the code: var str = ToLower(Field("WelcomePackageCode")); if (str.search("74289NY0010001-01ONEC") != -1) //outpath = "c:\Files\7-7 to Print\74289NY0010001-01ONEC\"; outpath = "c:\\Files\\7-7ToPrint\\" + Field("WelcomePackageCode") + "\\"; else if (str.search("74289NY0010001-01ONEE") != -1) //outpath = "c:\Files\7-7 to Print\74289NY0010001-01ONEE\"; outpath = "c:\\ Files\\7-7ToPrint\\" + Field("WelcomePackageCode") + "\\"; else if (str.search("74289NY0010001-01ONES") != -1) //outpath = "c:/Files/7-7 to Print/74289NY0010001-01ONES/"; outpath = "c:\\Files\\7-7ToPrint\\" + Field("WelcomePackageCode") + "\\"; else if (str.search("74289NY0010001-01ONFM") != -1) //outpath = "c:/Files/7-7 to Print/74289NY0010001-01ONFM/"; outpath = "c:\\ Files\\7-7ToPrint\\" + Field("WelcomePackageCode") + "\\"; else if (str.search(74289NY0020001-01ONEC") != -1) //outpath = "c:/Files/7-7 to Print/74289NY0020001-01ONEC/"; outpath = "c:\\Files\\7-7ToPrint\\" + Field("WelcomePackageCode") + "\\"; else if (str.search("74289NY0020001-01ONEE") != -1) //outpath = "c:/Files/7-7 to Print/74289NY0020001-01ONEE/"; outpath = "c:\\Files\\7-7ToPrint\\" + Field("WelcomePackageCode") + "\\"; else if (str.search("74289NY0020001-01ONES") != -1) //outpath = "c:/Files/7-7 to Print/74289NY0020001-01ONES/"; outpath = "c:\\Files\\7-7ToPrint\\" + Field("WelcomePackageCode") + "\\"; else if (str.search("74289NY0020001-01ONFM") != -1) //outpath = "c:/Files/7-7 to Print/74289NY0020001-01ONFM/"; outpath = "c:\\Files\\7-7ToPrint\\" + Field("WelcomePackageCode") + "\\"; filename = Field("WelcomePackageCode") + " " + Field("LastNameRP") + "_" + Field("FirstNameRP") + " " + Field("SubscriberID"); outfile = outpath + filename; if (FieldChanged("SNSTrackingID")) FusionPro.Composition.OpenNewOutputFile(outfile + "." + FusionPro.Composition.outputFormatExtension); Thanks Mike
  8. Thanks Guys for all the help... was playing around late into the night... (obviously I am a complete noob to this) couple of issues.... 1. I get it to make a file named properly but only the first one of the "plan" the rest just get named 1.pdf, 2.pdf , etc. 2. I can't seem to get the composed files into their proper folders. They are being made in my directory that the original PDF is in, even after I code the "//" Thanks Again Mike
  9. This is what i got... I am getting errors I think it has to do with my path var str = ToLower(Field("WelcomePackageCode")); if (str.search("74289NY0010001-01ONEC") != -1) outpath = "c:/Files/7-7 to Print/74289NY0010001-01ONEC/"; else if (str.search("74289NY0010001-01ONEE") != -1) outpath = "c:/Files/7-7 to Print/74289NY0010001-01ONEE/"; else if (str.search("74289NY0010001-01ONES") != -1) outpath = "c:/Files/7-7 to Print/74289NY0010001-01ONES/"; else if (str.search("74289NY0010001-01ONFM") != -1) outpath = "c:/Files/7-7 to Print/74289NY0010001-01ONFM/"; else if (str.search(74289NY0020001-01ONEC") != -1) outpath = "c:/Files/7-7 to Print/74289NY0020001-01ONEC/"; else if (str.search("74289NY0020001-01ONEE") != -1) outpath = "c:/Files/7-7 to Print/74289NY0020001-01ONEE/"; else if (str.search("74289NY0020001-01ONES") != -1) outpath = "c:/Files/7-7 to Print/74289NY0020001-01ONES/"; else if (str.search("74289NY0020001-01ONFM") != -1) outpath = "c:/Files/7-7 to Print/74289NY0020001-01ONFM/"; filename = Str(Field("WelcomePackageCode") + " " + Field("LastnameRP") + "_" + Field("firstnameRP") + " " + Field("SubscriberID")); outfile = outpath + filename; if (FieldChanged("WelcomePackageCode")) FusionPro.Composition.OpenNewOutputFile(outfile + "." + FusionPro.Composition.outputFormatExtension);
  10. Great!! When could we expect to see 9.2?
  11. k... here goes.... Using 9.1 Windows We have a project that need to output multiple files based on a specific data field. I have accomplished that with PTI's help. What I am wondering is this. I have a data file with 760 names, addresses and other misc data. There is a field named "Plan" which changes from person to person. There are 100 different data strings that can possibly be assigned to each person's "plan". I have sorted the data so it is in order of the "plan" field (so the first 51 have the same plan , the next 32 have the same plan, etc.) On output is it possible to tell FP to create a folder named whatever is in the "plan" field and create multiple pdfs within that folder? When it finishes that bunch of 51, create a new folder named the next "plan" and output it's files. Sorry so long and winded, but any help would be appreciated Thanks Mike
×
×
  • Create New...