Preview Picture of Report in ASP.NET

HI Experts,

Thanks in advance for reading this.

In CR10 developer/designer there's an option for 'Save Preview Picture' (File --> Summary Info).
This feature allows you to look at a preview of the report layout (this is in Crystal Enterprise).
Is there a way to include this feature into an ASP.NET page either through the
CrystalReportViewer or ReportDocument components or there's another way?

Sample code or links is very appreciated !




 
LVL 6
allanau20Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mike McCrackenSenior ConsultantCommented:
I don't think so since.

mlmcc
ladylinetCommented:
Hi allanau20,

 If you are using ReportClientDocument object, there is a method called ModifySummaryInfo that will let you do that.

  public virtual void ModifySummaryInfo(    SummaryInfo newVal )

where SummaryInfo is a class that contains  IsSavingWithPreview accessor.

Here is a except from documentation for that class:

SummaryInfoClass overview

Public Constructors
 SummaryInfoClass Constructor  Initializes a new instance of the SummaryInfoClass class.  

Public Properties
 Author  Gets or sets the author of the report.  
 ClassName  Gets the ProgID (programmatic identifier) of the object.  
 Comments  Gets or sets any comments the author of the report has.  
 IsSavingWithPreview  Gets or sets a value indicating whether a thumbnail image of the report is to be saved.  
 Keywords  Gets or sets the keywords that describe the report.  
 Subject  Gets or sets the report's subject.  
 Title  Gets or sets the title of the report. This is not the same as the report's file name.  

Public Methods
 Clone  Creates a copy of the object.  
 CopyTo  Copies the contents of this object into the object specified by the first parameter.  
 Equals  Overloaded.  Compares two objects for equality.  

 Let us know...
 Lady Linet
allanau20Author Commented:
Thanks for your replies.

Sorry, but I'm not using ReportClientDocument, rather it's ReportDocument.

I checked MSDN and I don't think ReportClientDocument is part of .NET (too bad).

It would be a good feature to implement...

If you don't mind, I'll just leave this open for awhile.

Again, thanks for the reply.
ladylinetCommented:
Hi, it is part of .NET but in the sense that you can use it in .NET applications if you import proper namespaces and reference dlls in your project. To get dlls, you need API that comes with Crystal Enterprise  (Enterprise Embeded Edition in CR 10 has it, and all other editions).

 Look at this link:
 http://support.businessobjects.com/communityCS/TechnicalPapers/ce10_ras_install_en.pdf

 There are different ways to use CR in your .NET project, depending of your edition of CR. You mentioned that you have Crystal Enterprise - well, Embeded Edition is part of it, so you should be able to access that namespaces in your project. You wouldn't find them in MSDN, but look at Business Objects support web site for .NET SDK.

http://support.businessobjects.com/library/docfiles/cps10/docs_en.asp
http://support.businessobjects.com/communityCS/TechnicalPapers/cr10_NetSDKGuide_en.zip.asp
http://support.businessobjects.com/communityCS/TechnicalPapers/cr_net_sdk_additional_en.zip.asp
http://support.businessobjects.com/communityCS/FilesAndUpdates/cr_net_sdk_tutorial_samples_en.zip.asp

 With over 1000 reports to maintain, I would look for programing solution for maintenance.

Lady Linet

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
allanau20Author Commented:
Thanks Lady Linet, I'll check it out and keep you posted.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.