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

Similar Messages

  • Programaticly changing the (suggested only) file name in the save prompt when signing a document?

    When you sign a document in Adobe X (or XI), the system says it needs to save the file first.   Is there some way to change the (suggested only) file name to a different value for that save?
    Right now, people open a blank form - lets call it formX.pdf.   They fill it in and sign it.  The suggested file name for the save is FormX.pdf.   I can generate a unique file name which i'd like to put in place of the suggested default...

    AFAIK, you can't do it with code. Your best option might be to use a form field to show a message to the user when they sign the document with that information.

  • How to change default save as location

    hi,
    how to change default save as location in acrobat 7.0?

    Why is Acrobat involved in this process at all? Why don't you save directly the pdf from your email program directly where you want it to be? Acrobat is just adding another step to this process.

  • Changing default save format?

    Hi, I'm a newbie here.
    I almost always make my outputs in Wav, 16bit, 22050Hz, and I find it very cumbersome to always have to change each setting when saving my files.
    Is there any option, or an easier way to change default save format?
    Thanks in advance.

    Hi, I'm a newbie here.
    I almost always make my outputs in Wav, 16bit, 22050Hz, and I find it very cumbersome to always have to change each setting when saving my files.
    Is there any option, or an easier way to change default save format?
    Thanks in advance.

  • Save For Web - saves original file name not new name

    Hello, when I use Save for Web with slice(s) the original file name (appended with the slice number) gets saved even though I have changed the file name in the save dialog. This only happens about 50% of the time. Sometimes it saves as expected - with the new file name. I am using the default settings in the save dialog all the time.
    Stranger is that if I am saving (for Web) say 10 slices some will be named with the original file name and some will be saved with the name I gave it in the save dialog.
    This was happening on my Windows XP sp2 system when I was saving to an Ubuntu server (local network). So when I switched to a new computer running windows 7 and saving to a new server (windows 7 pro) I thought it might fix the problem - but it has not. So there must be a setting I am missing - though that does not account for the intermittency of the problem. I have changed settings under "custom" in the save dialog and things do change except the original file name is persistent not the new name I have given it.
    The PSD files come from a designer using a Mac.
    My system:
    PS 10.01
    Windows 7
    AMD x2 duo 250
    4 gig Ram
    Thank you for any help you may provide
    jim

    I made an action to save large batches to a designated "pics" folder. Then when I'm done with a big batch, I just move them to the original folder and let the OS overwrite them. May seem like a lot of work, but I can do a batch of 500 gallery thumbnails in about four minutes and it takes about 30 seconds to move them and replace the originals.

  • How to change the output executable file name(a.prj:(output)--- b.exe)

    LabWindows / CVI: how to change the output executable file name
                For example, I have an A project a.prj, I do not want to compile the output file is a.exe, but b.exe.
    I will try to save as a.prj b.prj, a.cws save as b.cws
    eg:a.prj  ---->(output)--->b.exe
    Solved!
    Go to Solution.

    You can go to Build >> Target Settings menu item, select Release (or Release 64) in the Configuration filed and set the name of the executable to create in Application FIle field, withouyt need to change the prj or cws filename.
    See the complete description of available options here.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • 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

  • In R12 how to change concurrent output/log file name prefix?

    how to change concurrent output/log file name prefix?

    but i want to change change concurrent output/log file name prefix?You cannot, and I believe it is not supported for all concurrent requests -- Please log a SR to confirm this with Oracle support.
    Thanks,
    Hussein

  • Save custom file name using MS Office Report Express VI

    When my program creates a report, I want to save it as a serial number defined in the report.  I want to use the MS Office Report Express VI to do this but unfortunately it only allows you to save the file name as a time/date and/or incremental number.
    Solved!
    Go to Solution.

    Hi jliu317,
    While waiting for you to notify the moderator to move your thread, here is my solution. (Correct me if I'm wrong)
    In MS Office Report, there is a block diagram input called Path to Save Report. So this is where you can save your report in Words (.doc) or Excel (.xls) with customized filename such as serial number, as shown below.
    http://zone.ni.com/reference/en-XX/help/370274G-01/lvoffice/ms_office_report/
    Hope this helps.
    -Ee Lim-
    See that button on the left side of this post...
    If you feel my post is helpful, all you need is just (at most) 2 seconds to click that button, to show your appreciation. Thank you~~

  • 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

  • Opening 2 PDF's with the same file name

    I have someone who has difficulty opening two PDF's with the same file name. They had a file open, then try to open another PDF document with the same file name as the original document, however it will not open (and no error displays) and reverts back to the "old" document. Any ideas?

    Are this diferent documents? What version of Adobe Reader?

  • Can we change the web.xml file name???????

    can we change the name web.xml and struts-config.xml file to other name.....if yes, then how..........

    you can change the name of struts-congig.xml file
    and change the strut-config file name in web.xml also.
    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
        <servlet>
            <servlet-name>action</servlet-name>
            <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
            <init-param>
                <param-name>config</param-name>
                <param-value>/WEB-INF/struts-config.xml</param-value>
            </init-param>And you also try rename the file web.xml and run the application and check what is happening...

  • Isit possible to change the default save as file type settings?

    Hi,
    I would like to set the default "save" and "save as" file type to "PDF /A" instead of the default "PDF" due to compatibility issue with some of our systems. Can this be done?
    So when a user click on the save button at the top it auto save as "PDF /A" and when the user select save as the default selection will be "PDF /A" ?

    Dave,
    Did you ever find an answer to this? We are having the same issue.
    Thanks,
    Mike

  • Change default save file type to gif

    I've seen people submit some solutions but it requires changing codes of the files.... is there a simpler way to do it? I don't understand why it's saving as a jpg file... the older versions used gif as the default for save as web...

    That is odd. What version of Ps are you using? Both CS6 and CC 2014 hold the last used format (GIF) for me.. First, try holding Alt (Win) or Opt (Mac) with Save For Web open - the "cancel" will become a "reset" button. Now try again. Also, when you press Alt/Opt you should see the "done" will become a "remember."
    Benjamin

  • Bouncing - Premiere to Audition to Premiere - How to change default save location from Desktop

    When I am bouncing from Premiere to Audition "Edit Clip in Audition", and then apply the effect and save the file, it seems to save the file to the desktop. Is there a way to change this default save location? Can't seem to find it in the preferences.
    Didn't even realize it was doing this. Desktop was getting pretty cluttered.

    You can paste this command in Terminal
    defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false
    Or use Mountain Tweaks - click the Mountain Lion tab & it's the sixth item in the left-hand column.
    Both will disable the default iCloud save & still let you have access to iCloud if you want it.

Maybe you are looking for