Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm Controls / February 2005

Tip: Looking for answers? Try searching our database.

Printing Crystal Report from VB.net

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ulka - 10 Feb 2005 13:02 GMT
Hi,

I have a crystal report with printer setup - Landscape.

And a crystal report viewer with print button - enabled.

When I am printing the report it comes out as portrait (as the default set
up of the printer is portrait.)

I want the report should come as Landscape Only.

(With out altering the default setting of the printer....)

How can I force my report to come as landscape?
Bernie Yaeger - 14 Feb 2005 20:32 GMT
Hi Ulka,

It may be your printer.  When my crystal reports printer setup in the report
is set to 'landscape', the report automatically prints in landscape; I don't
have to do anything with the printer settings to make this happen.

HTH,

Bernie Yaeger

> Hi,
>
[quoted text clipped - 10 lines]
>
> How can I force my report to come as landscape?
ulka - 15 Feb 2005 08:41 GMT
Hi Bernie Yaeger,
   Thanks .
When I print from cysrtal report the report is printing ok i.e landscape.
When I try to Print the same report from VB.net windows application ,It
picks the default  setting of the local printer and not the setting of the
report

thanks
ulka

> Hi Ulka,
>
[quoted text clipped - 20 lines]
> >
> > How can I force my report to come as landscape?
Bernie Yaeger - 15 Feb 2005 12:11 GMT
Hi Ulka,

My .net app prints the report after displaying the viewer control as
landscape or portrait, based only upon the report's settings as defined in
the crystal environment.  I print using a reportdocument object, but I am
not setting the orientation in it, so I still think the issue is with your
printer.

Bernie

> Hi Bernie Yaeger,
>    Thanks .
[quoted text clipped - 33 lines]
>> >
>> > How can I force my report to come as landscape?
Bruce Wood - 15 Feb 2005 18:48 GMT
Are you setting the PrinterName in your VB.NET application?

Try checking the PrintOptions.PaperOrientation setting before and after
you set the PrinterName, or before you print the document, and see what
it's set to. It should be set to Landscape.
Bernie Yaeger - 15 Feb 2005 20:31 GMT
Hi Bruce,

I'm neither setting the orientation nor the printername, but your idea is
good, and Ulka should try this, as his printer might need to 'boost'.

Bernie

> Are you setting the PrinterName in your VB.NET application?
>
> Try checking the PrintOptions.PaperOrientation setting before and after
> you set the PrinterName, or before you print the document, and see what
> it's set to. It should be set to Landscape.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.