May 5, 200619 yr Hi, This question has been asked for FM8 but I don't see any post regarding FM6. I want to export to a file, using data from one of my fields as the filename. eg, create a PDF document of an invoice, using the invoice number as the filename. Is there a script step that an do this in FM6?? thanks
May 5, 200619 yr Author OK Thanks. Agreed that PDF output came only in FM8, but if you have Adobe Acrobat installed (not just the reader) you can create a PDF from ANY application. You just select output to PDF as a printer.
May 6, 200619 yr The naming functionality is in the PDF printer. I've used Win2PDF extensively for this. Win2PDF requires you to write the name of the PDF to the registry before printing so it took a bit of VBscripting to do that, but it worked fine. Alternatively you could print to a fixed name and then use the OS to rename and/or move the file automatically.
May 8, 200619 yr Author Thanks Wim, Unfortunately VBscripting is out of my league. I just have to go with renaming the file manually each time.
May 8, 200619 yr For just the renaming after the file is printed to a fixed name you don't need VBscript. You use the "Send Message" (FM6) or "Send Event" (FM7/8) script step to execute an OS command line: %comspec% /c ren c:fixed.pdf c:somethingElse.pdf You can use a calc to make this string so it can use your data.
Create an account or sign in to comment