Custom 'Save As' file name for cfdocument

I have a page that generates a PDF (genPDF.cfm). When the
user attempts to save it, it saves as genPDF.pdf. Is there any way
that when they go to save it, I can dynamically name the document?
I am using Blue Dragon 7 here so any cool CF8 additional tags are
not accessible. I know, sucks, right? Thanks!

no clue about BD, but in CF you would use a combination of
<cfheader>
and <cfcontent> tags to tell the web server how to
serve the file, what
mime type it is, what its name is and where to get the real
file from.
all details are in the cfml reference/livedocs. no clue if BD
has such
tags, but i would be surprised if it didn't...
<cfheader name="Content-Type" value="application/pdf">
<cfheader name="Content-Disposition" value="attachment;
filename=My_Super_Wicked_PDF.pdf">
<cfcontent type="application/pdf"
file="D:\MyFiles\Docs\PDF\This_PDF_is_actually_lame.pdf"
deletefile="No">
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/

Similar Messages

  • How to create Same file names for source and target.

    hi
    Can any body send Procedure for below requirement.
    how to create the dynamic file names for a source and save the file with same name in the Target, because it has to identify that which sender had sent the file and the target file should be again sent back to the customer as a link.
    Please help me.
    Thanks

    Hi,
    See the below link
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14 - sender file name as receiver file name
    Regards
    Chilla

  • I keep getting error message (cannot save as "file name" because of a program error)

    I opened a pdf in photoshop and when I need to save it back as a pdf i get this error (cannot save as "file name" because of a program error). I need to save it specifically as PDF/X-1a:2001 but the only pdf options that will work are "highest quality print" and "smallest file size". None of the others work. I'm running Photoshop CS5 on a PC laptop and I tried it on my desktop and also a mac running CS 5.5 and always get the same error. I think the problem might be with the custom color settings I have but it works fine on my work computer with the same color settings. What could be going on?

    Yes, it's probably related to your color settings in some way. Why you are doing it in the first place...? Since they are ISO standards there is simply no liberty in choosing arbitrary settings for PDF/X, especially the archicval flavors... So in conclusion you will have to make your color settings compliant. The crash itself is probably a bug in the PDF libraries and it may work at your office because there you may use a different version of Acrobat/ Adobe Reader and the associated PDF libraries which do not have this bug. Still, the initial issue remains: You need to work within the spec, not against it.
    Mylenium

  • Can I use data entered in PDF form's field(s) to auto-populate Save As file name?

    Hello,
    I want to automate, as much as possible, the "Save As" process by using some of the data that the user entered in the fillable PDF form.
    For example, I want to include the user's First Name and Last Name that they entered in the form to be part of the saved file name.
    First Name: Bob
    Last Name: Smith
    Therefore, when you select to Save As part of the new file name will already have <BobSmith><today's date>.PDF
    Form was created using LiveCycle Designer 11
    PDF version: 1.7, Adobe Extension Level 8 (Acrobat X)
    Thanks for any information that you can share.
    Regards,
    Roch

    You should try the LiveCycle Designer forum, but from my experience with Acrobat forms it's not possible. What you can do is either save the file using the desired file name and path (without user interaction), if the script runs from a trusted context, or you can prompt the user with the desired file-name for the file, but not enforce them to use it, nor populate it into the Save As dialog itself.

  • Export to PDF change default "Save As" file name

    Hello,
    I have an asp.net application where I use a CrystalReportViewer. The user runs the report via the application.  They then click on on the the Export button in the viewer with PDF as the format.  This launches the PDF file.  When I click the Save icon, the Save As dialog box comes up.  The default name in this window is the name of the .aspx file.  I want to be able to specify what this file name should be instead of it defaulting to the name of the asp page in which the report was launched.
    I do not want to recreate the Export button, I am trying to find a way to do this with existing crystal functionality.  Can anyone please help??  Thank you!!

    Hi there,
    I believe I may have found the solution!
    You will need to set your CrystalReportViewer.ID property to what you need your filename to be.
    In my example:
    CrystalReportViewer.ID = "NewPDFFileNamehere";
    The .PDF file extension will be added automatically!
    Just note, you need to set the above property ASAP in code - meaning - It should be the first thing you do before having any other code attached, read into or from CrystalReportViewer.
    Hope it helps!
    Credits to http://blog.dragonsoft.us/2009/04/07/how-to-set-default-file-name-for-export-from-crystalreportviewer-in-aspnet/
    RBotha

  • I just found an error in the file name for my Camera Raw Cache file.  How do I correct it?

    I just found an error in the file name for my camera raw cache file.  The error is in my username.  I don't know how to correct the error or if I should just leave it.  I'm not sure where my cache file is stored on my computer.  Any help would be appreciated.
    Thank you

    Since you are on a Mac if when you first set up your account you left out the i in Wilson nothing you do will change that. The REAL account name will always be alicewlson. Once an account is created you can't actually change the name of it. You can change the name that is displayed but not the REAL account name.
    Simplest thing to do is stop worrying about it. Everything is as it should be, that is except Wilson being spelled without the i.
    Lilac50 wrote:
    When I searched finder for "alicewlson" I found a long list of files like this:
    2014-07-22 12.50/File005.nef[15:16:35.212] (debug) src/ImageLoader.cpp:363: File: /Users/alicewlson/Recovered/2014-07-22 12.50/File002.nef[15:18:02.173] (debug) src/StoreXMLFile.cpp:21: /Users/alicewlson//.rpro/rpro.cfg
    I believe I made the error in my user name when I first got my computer a year ago. I then corrected it under my user name but not in my Lightroom files. I also looked for files with a .lrdata extension and didn't find any.

  • Could not save as (file name) because the file could not be found

    When i try saving sothing it comes up with could not save as (file name) because the file could not be found and need to save this file. i could save stuff before but not anymore if anyone could help i would be grateful
    im using photoshop cs5.1
    Thanks keiron

    We cannot know. These kinds of things are operating system errors with stuff getting blocked due to insufficient permissions, security tools interfering, network errors or whatever. Since you mentioned none of that, it's an "Ask your mom..." thing at this point, but if you provide more details, someone might be able to figure it out.
    Mylenium

  • Assign Logical file name for the physical file path through Program

    Hi all,
    I am having a physical file which is getting generated dynamically. It is having the date and time stamp in its name which is added at runtime.
    Now I need to assign a logical file name for the physical file path through the program.
    Is there any FM or any other method to assign the same.
    Gaurav

    I think it is not possible. becuase the date & time added at runtime. so if you check the table  PATH you can find filename and their definitions

  • How do i change the HTML file names for existing index

    Hi,
    How do i change my existing HTML file names for indexes. The Html file name is disabled when we click on properties.
    Ex:   Index Keywork : Architecture
            Old HTML Page/URL =: Architecture.htm
    I want to change  Old HTML Page/URL =: Architecture.htm to architecture_new.htm
    Please find the screenshot attached.

    That's because you are looking at the Properties and that is not how you create index entries.
    Highlight the Index keyword ("Paste" in this example). It shows below what is already linked. If you delete that, the keyword will be displayed in bold to show no keyword is attached. You can add further keywords by dragging them from the Topic List.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How do I change the .php file name for a page of my site?

    how do I change the .php file name for a page of my site? The only link to the page is the nav. button link for it in the global nav. The reason I need to change the file name is we want the breadcrumbing name to change and the breadcrumbing is linked to the file name.

    The reason I need to change the file name is we want the breadcrumbing name to change and the breadcrumbing is linked to the file name.
    I don't understand this reason. How would changing the file extension solve your breadcrumb issue? Why don't you explain the issue in more detail.

  • Displaying File Name for Photo and Video Clips in Premiere Elements 10

    I am using Premier Elements 10 on a Windows 7 Pro desktop computer to create
    a project consisting of 128 jpg photo and mp4 video clips.  Before creating
    the project I created a short file name for each clip describing its
    content.  I've added menu tags at locations which separate the project into
    discrete segments.  I've selected a disc menu which utilizes the menu tags I
    created.  I previewed the project and I'm satisfied that the DVD disc I
    intend to create will display everything I want except for one thing.  I
    have spent several hours trying to find out how to have each displayed clip
    include the file name (without extension) somewhere near the edge of each
    window as it is opened in the finished production.  I sure would appreciate
    some help with the steps needed to accomplish this.

    Welcome to the forum.
    This can most easily be accomplished by adding a Title (maybe from a Lower-Thirds Title Template), above each Clip/Still Image.
    I would create one such Title, and manually add the "File Name" in the location desired. Then, place that on a higher Video Track, above the Clip/Still. Then, just use the Duplicate Title function, to create a new Title, with the Text and Style, per the first - edit the Text for each, as required.
    I know of no automated method to grab the Clip's/Still's File Name, and add that to a Title, as PrE does not support any scripting.
    Good luck,
    Hunt

  • Import tables using same file name for all tables

    hi,
    We are using oracle 11.2.0.3.0, we have taken export of multiple tables in schema, unfortunately in exp command we have mention same file name for all the tables, now it has created one file for all export but the size of that file shows that all the tables included in it , when we try to import the tables only last table mention in export command is imported for other tables it hangs, example of code show below.
    Is there any way to import the remaining tables.
    exp system file =exp05042013.dmp tables=gr.table1
    exp system file =exp05042013.dmp tables=gr.table2
    exp system file =exp05042013.dmp tables=gr.table3

    Hi,
    You can use as :
    exp username@database tables=table1,table2 file=tabledata.dmpDid you have any RMAN full backup?
    Why you are not recover crash database?
    Mahir

  • File names for photos on iPad?

    How do find the file name for photos in iPhoto on the iPad?

    To the best of my knowledge, you can't do it on the iPad. But after syncing, you can just click on a given photo in iPhoto and the name will appear in the "title" field in the Information box on the left-hand side of the iPhoto window.
    (Make sure you have that little icon of an "i" in a circle checked in the bottom left corner next to the search bar, or you won't see the Information pane.)

  • Unique Render File Name For Clips?

    How do I create a unique output file name for each clip in my timeline that is edited?
    Example:
    REEL_123.MOV appears 3 times on my timeline at different edit points. I need the output to  be REEL_123_1.MOV REEL_123_2.MOV etc. etc. Or something similar.
    I tried Src.FileName + General.RenderStartTime12hrs thinking that would give me a unique output name but it doesn't. Well, it kinda does, but if the clips are too close together on the timeline it looks like they all get created the same time resulting in a non-unique filename.
    Any suggestions?
    Cheers.

    Add General.EditNumberPadded.4 (from the Common catagory) as the first or the last string to your output name.

  • What are shortest file names for outlook express and PSE11 to import photos pls

    what are shortest file names for outlook express and PSE11 to import photos pls

    Hi, Troubled. The size of the file name is pretty much irrelevant here to PSE, but to answer your question directly, you will be able to import a file that has only a single character as its file name (plus the file name needs to have the required extension, such as .jpg)

Maybe you are looking for