Landscape orientation Crystal Viewer

  • Thread starter Thread starter Robert Schuldenfrei
  • Start date Start date
R

Robert Schuldenfrei

Hi Again,

Forgive me for posting this again, but old items seem to get little review.

I thought I could adjust the viewer properties without any further aid from
the NG, but I was wrong. When I print my reports to a file or directly to
the printer, the orientation is landscape. This was set in the report
itself using Designer | Printer Setup and setting the printer to landscape.
When I send the report to the viewer, using the statements listed below, the
lines are truncated because the viewer is defaulting to portrait
orientation. How can I change this viewer property? The book I am using is
Neil FitzGerald et. al., Using Crystal Reports 10. It is very good at
explaining Crystal, but is very brief on explaining the .NET material. As
ever, thank you in advance for your help.

Sincerely,

Bob

Robert Schuldenfrei
(e-mail address removed)
 
Hi Bob,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that the landscape report is being printed
in portrait mode from then printer although you have set to landscape mode.
If there is any misunderstanding, please feel free to let me know.

Based on my research, this might be a known issue in crystal report. They
have released a hotfix on this. Please check the following link for more
information.

http://support.businessobjects.com/library/kbase/articles/c2010983.asp

Furthermore, Crystal report is not supported by Microsoft. For more
information related to this issue please check the following link:

http://support.crystaldecisions.com

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
Hi Kevin,

Thanks for your additional wisdom. Before I go blindly ahead with the
update, I thought I would check with you. I believe that my version of
Visual Studio is much newer than the version for which this fix remediates.
The fix was applied to the follow version of CR as reported from the site
you reference:

With the file update, print orientation is now set from the PaperOrientation
property of the Page Object. As a result, reports will now print based on
the paper orientation that is set in the report print settings.

This issue is corrected in the following component and version and later:

CrystalDecisions.Windows.Forms.dll, version 9.1.9466.5, dated 06/25/2002

My version Visual Studio is: Microsoft Development Environment 2003 Version
7.1.3088 Crystal Reports for Visual Studio .NET AAP50-GS00000-TTH00RM
taken from the About text. Please verify that I should apply the fix.

FURTHER: My understanding of the following comments from Crystal:
"PaperOrientation property of the Page Object" leads me to believe that
there is a Page Object whose PaperOrientation property I could set. As you
remember, I have set the orientation from the report layout itself with the
following: Designer | Printer Setup. I see how the following statements
could work with the report, but not the Viewer:

ReportDocument report = new ReportDocument();
report.Load("C:\\database\\MCS-3-SQL\\MCS-3inC#\\INV\\Reports\\rpt1302.rpt")
;
report.PrintOptions.PaperOrientation =
CrystalDecisions.Shared.PaperOrientation.Landscape;

Could you help me with two issues:

1/ An example of setting the the PaperOrientation property of the Page
Object. This needs to be done with respect to the Viewer and not the
printer, which is working fine.

2/ How to use the help function of Visual Studio to learn about the Viewer
myself.

Thank you,

Bob

Robert Schuldenfrei
(e-mail address removed)
 
Hi Bob,

Here I found some examples and threads that having the same problem as
yours. Please try the solutions.

http://www.experts-exchange.com/Databases/Crystal_Reports/Q_21068270.html
http://www.xtremevbtalk.com/archive/index.php/t-168179.html

To learn programming on Crystal Report, here are some useful links:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/crystlmn/ht
ml/crconcrystalreports.asp

Besides MSDN, you can refer to Crystal Report website for more detailed
information.
http://support.businessobjects.com/library/docfiles/cps10/docs_en.asp

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
Hi Kevin,

Thank you for staying with this issue. Still no luck. I tried the four
references noted below. The Expert Exchange wanted $9.95 per month for
answers. Might do that as a last resort. Xtremevbtalk did not answer the
question. Microsoft did not even address the question. Business Objects
suggested an update, which I did, but I still have the issue.

Here is what I plan to do. I am going to buy the Brian Bischof book,
Crystal Reports .NET Programming. When it arrives I will try to resolve the
issue. If I can not I will just let the problem alone as I can print any
report I want as long as it goes to the printer. If worst comes to worst I
can load WordPad with the report stored on disk and use that as my Viewer.

Cheers,

Bob

Robert Schuldenfrei
(e-mail address removed)
 
Hello NG,

I found the answer to this issue by "poking around." I was looking in the
wrong place. You do not set the properties of Form1, but you alter the
properties of the Crystal Viewer. There is an object in the "tray" below
Form1 that was created by the ReportDocument component called (in my case)
rpt13011. It is THIS object that has the property you want to alter. Bring
up the property sheet for this object. Look for the property called:
PrintOptions | PaperOrientation. It is set by default to
DefaultPaperOrientation which in my case is Portrait. Change this property
to Landscape and you are done. Thank you Kevin for all your help.

Sincerely,

Bob

Robert Schuldenfrei
(e-mail address removed)
 
Back
Top