Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8190359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T03:36:12+00:00 2026-06-07T03:36:12+00:00

I am using the Crystal Reports 2011 designer just to test it out. I

  • 0

I am using the Crystal Reports 2011 designer just to test it out. I need to be able to hide certain components, e.g. a sub-report, when exporting to different formats like Excel or .pdf. I’m guessing this can be achieved through the Suppress field with a formula, but I can’t find the right syntax. Needs to be something like this:

If ExportFormat="Excel" then Suppress
Else if ExportFormat="PDF" then Show
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T03:36:16+00:00Added an answer on June 7, 2026 at 3:36 am

    It doesn’t seem like there is a variable to represent the ExportFormat type when using expressions in Crystal Reports.

    It is possible to overcome this problem by setting a parameter programmatically during an export event i.e. create a parameter @ExportFormat and during the export event set this parameter depending on the type of export e.g. if the export taking place is to Excel, set @ExportFormat=”Excel”. Then the following expression can be used to suppress a control:

    {?@ExportFormat}='Excel'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Crystal Reports 2011. I am totally new to crystal reports and
I have a C# 2010 application that contains a report created using Crystal Reports
I am using SAP Crystal Reports in VS 2010. I create a report like
I want to create a report, using either Crystal reports or RDLC, doesn't really
Is it possible to rename a report section in a crystal reports using the
I need to print PDF's generated in an asp.net application using crystal reports. Upon
We are using Crystal Report 12 in one of our projects. Currently I need
I'm using Crystal Reports in my asp.net application. I need to pass string as
I am using crystal reports in VS 2010. I have a report with a
I'm designing a report using Crystal reports for Visual Studio 2010. In my report

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.