CFanatic

Go Back   CFanatic > Programming > C# Programming

Join CFanatic Forum Now

C# print problem -- page orientation topic posted under C# Programming which is a part of Programming category in CFanatic Forum
Reply
 
Thread Tools Display Modes
  #1  
Old 01-01-2007, 05:01 AM
Junior Member
 
Join Date: Jan 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
benfly08 is on a distinguished road
| More
C# print problem -- page orientation

Hi,
I'm having a print problem for my C# windows form program.

In my small program, I need to pull out data from my database and format them as invoice format. These parts were done quit well. When it went to printing, something weird happen.

I used PrintDocument class to do printing. And I set the DefaultPageSettings.Landscape = false. In my testing environment, the document could be printed probably under the printer HP LaserJet 2420dn; however, when I put it into the production environment, the output became Landscape!! My production environment has an EPSON FX2190 printer attached to a PC where my program located using Paralled port. I'd been stuck into this problem for two days and got no clue for resolving it.

Anyone has any idea?
Reply With Quote
  #2  
Old 01-19-2007, 08:57 PM
Junior Member
 
Join Date: Sep 2006
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Essial is on a distinguished road
| More
Re: C# print problem -- page orientation

Make sure you setl PrintDocument.DefaultPageSettings.Landscape just before your .print (don't do anything in between) and see if that works.

http://msdn2.microsoft.com/en-us/lib...esettings.aspx
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Where seek-page on your site!!! JellyDreamas Help & Support / Suggestion & Feedback 1 09-29-2008 12:13 AM
Getting Control of a Property Page in a Wizard Larry A Mill Sr MFC Programming 6 07-31-2008 11:02 AM
How to print bit-patterns of a given integer heavensgate15 C Programming 2 06-27-2008 01:24 PM
Print Japaneese character on Linux terminal & debugging problem rajeshgalla C Programming 0 04-14-2008 03:01 AM
create aspx page in runtime sanju11 C# Programming 0 01-01-2007 04:45 AM

 

Advertisement

CFanatic Search
Custom Search

Advertisement

All times are GMT -5. The time now is 04:03 AM.



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2010, Crawlability, Inc.
Cfanatic.com is a premier member of the IDG TechNetwork. For advertising opportunities contact here
Get Paid for Working on Projects Matching Your Expertise at Go4Expert's Jobs Board