By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,564 Members | 804 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,564 IT Pros & Developers. It's quick & easy.

Landscape orientation Crystal Viewer

P: n/a
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
bo*@s-i-inc.com
"Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
news:4H*************@cpmsftngxa06.phx.gbl...
Hi Robert,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to view crystal report on a
windows form. If there is any misunderstanding, please feel free to let me
know.

As far as I know, if you need to view it on a windows form, you need to
place a crystal report viewer on the form, and assign the report document
report source to the viewer. Then you just use the following to show dialog box.

Form1 myForm = new Form1();
myForm.ShowDialog();

Crystal Report is not supported by Microsoft. For more information related to this issue please check the following link:
https://support.crystaldecisions.com

HTH.

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


Nov 16 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
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/l...s/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."

Nov 16 '05 #2

P: n/a
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
bo*@s-i-inc.com

"Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
news:y3**************@cpmsftngxa06.phx.gbl...
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/l...s/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."

Nov 16 '05 #3

P: n/a
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/Data..._21068270.html
http://www.xtremevbtalk.com/archive/.../t-168179.html

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

http://msdn.microsoft.com/library/de...us/crystlmn/ht
ml/crconcrystalreports.asp

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

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

Nov 16 '05 #4

P: n/a
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
bo*@s-i-inc.com

"Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
news:gk**************@cpmsftngxa10.phx.gbl...
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/Data..._21068270.html
http://www.xtremevbtalk.com/archive/.../t-168179.html

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

http://msdn.microsoft.com/library/de...us/crystlmn/ht ml/crconcrystalreports.asp

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

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

Nov 16 '05 #5

P: n/a
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
bo*@s-i-inc.com

"Robert Schuldenfrei" <bo*@s-i-inc.com> wrote in message
news:IjuUc.273860$%_6.101896@attbi_s01...
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
bo*@s-i-inc.com
"Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
news:4H*************@cpmsftngxa06.phx.gbl...
Hi Robert,

First of all, I would like to confirm my understanding of your issue. From your description, I understand that you need to view crystal report on a
windows form. If there is any misunderstanding, please feel free to let me know.

As far as I know, if you need to view it on a windows form, you need to
place a crystal report viewer on the form, and assign the report document report source to the viewer. Then you just use the following to show

dialog
box.

Form1 myForm = new Form1();
myForm.ShowDialog();

Crystal Report is not supported by Microsoft. For more information

related
to this issue please check the following link:
https://support.crystaldecisions.com

HTH.

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


Nov 16 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.