Skip to Content
author's profile photo Former Member
Former Member

Display File Name on Report

Post Author: aricasa

CA Forum: General

I am using Crystal Reports v9. I would like to be able to display the file names at the bottom of my report but I do not want to show the file path. Is there a way to take the Special Field "File Path and Name" and show just the file name and not the path? If that doesn't work is there another way to do this?

Thank you for any help.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Apr 08, 2008 at 04:55 PM

    Post Author: training2go

    CA Forum: General

    Hello,

    Open the document properties dialog box for the report and type the file name that you want to appear on the report in the Title field, then add the report title special field to the report.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 08, 2008 at 04:59 PM

    Post Author: aricasa

    CA Forum: General

    Sorry, I should have mentioned in my original post that I am already using all of the fields of the Summary information for other things so that isn't really an option for me.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 09, 2008 at 02:43 PM

    Post Author: sharonmtowler

    CA Forum: General

    you can use the instrrev function, i dont remember the exact syntax but i have done it before. i can dig out a copy of it, may take a few days.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 09, 2008 at 05:09 PM

    Post Author: SKodidine

    CA Forum: General

    Not sure about CR9 but this works in CR XI.

    Filename[instrrev(Filename,'\')+1 to length(Filename)];

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 09, 2008 at 07:10 PM

    Post Author: sharonmtowler

    CA Forum: General

    thanks, it works like a charm, now i dont have to go hunting for the formula.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 10, 2008 at 04:04 PM

    Post Author: aricasa

    CA Forum: General

    Thank you so much, that worked perfectly!

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.