473,406 Members | 2,847 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Landscape orientation Crystal Viewer

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
5 9385
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Biguana | last post by:
Hi, Just wondering if anyone can help here. We have a site where most of the site opens in a window with no toolbars or menubar: window.open('mypage.aspx','self','toolbar=0, menubar=0, etc,...
0
by: Dino L. | last post by:
hi, Can I give option for landscape printing in crystal reports viewer?
0
by: Alpha | last post by:
How can I pint in Landscape when I use graphics.drawstring? Currently, I have to change my printer to Landscape to make it do so. The output is preview in a Crystal Report form that is setup as...
5
by: cpopham | last post by:
I tried posting earlier and it never showed up.. I have a simple program to print a text file. I need to know how to change the page settings to landscape if it is not already in ladnscape mode. ...
12
by: Connor T | last post by:
Hi, I have a crystal report embedded in a viewer. How / Where can I set a property to make it default to landscape orientation? Rgds, Dan
2
by: Ralf | last post by:
I posted under a different subject earlier, no responses. I have changed the question somewhat. Is there a way to have the report come up in landscape, not just print in landscape? I know how...
0
by: matvin | last post by:
When generating .NET Crystal Reports with Page Orientation as Landscape, a Blank page gets generated along with the report. But this is not the case when the page orientation is set with Portrait.Any...
2
by: satnamsarai | last post by:
it is possible to change page orientation to landscape from asp.net page? I am using window.print() dialog to print a page and I would like that page to print automatically in landscape view.
2
by: Charlie | last post by:
Hi: When outputing reports to PDF using report viewer control the PDF file can not be changed to landscape. What I mean is when you open in Acrobat and set to landscape, it accepts setting, but...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.