Problem with Landscape printing

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
fhmanas
Level 2
Level 2
Posts: 12
Joined: Wed Dec 03, 2008 3:14 am

Problem with Landscape printing

Post by fhmanas »

I am having problem printing in Landscape mode. I have a program that requires landscape printing. I have a Canon ip2770 attached directly to my machine, and is configured properly in Cups, correct driver and all. OpenOffice works perfectly in Portrait and Landscape printing.

In Wine, Portrait printing works perfectly for my program and the Wine Notepad. However, in both my program and the Wine Notepad, printing in Landscape will print the document skewed to the right, thus giving me a a good 3 inches of white space on the left side of the paper and my document is cut off when it reaches end of paper.

I have tried with this with multiple printers, HP Deskjet and 2 Epson Dot-Matrix and it is all the same way. Is this a bug in Wine handling landscape modes? My Wine version is 1.2 and OS is Ubuntu 10.04, paper size is US Legal.

Please help.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Problem with Landscape printing

Post by vitamin »

fhmanas wrote:My Wine version is 1.2 and OS is Ubuntu 10.04, paper size is US Legal.
Try upgrading Wine first. If that won't fix the problem, please file a bug in bugzilla.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Problem with Landscape printing

Post by dimesio »

fhmanas wrote:Is this a bug in Wine handling landscape modes? My Wine version is 1.2 and OS is Ubuntu 10.04, paper size is US Legal.
Doesn't happen here in Notepad in 1.3.9. Try upgrading.
fhmanas
Level 2
Level 2
Posts: 12
Joined: Wed Dec 03, 2008 3:14 am

Post by fhmanas »

Already upgraded to latest 1.3.9. And I am still getting the same result. my app is a Powerbuilder 5.0 app, for it, I am using native commdlg32.dll for wine notepad i am using builtin commdlg32.dll, still can't print landscape properly.
fhmanas
Level 2
Level 2
Posts: 12
Joined: Wed Dec 03, 2008 3:14 am

Post by fhmanas »

BTW, i know it's wine rendering because even if I print using PDF writer and print that PDF using native Linux PDF printing I still get the same result. I will try to post a sample PDF file when i get back from holidays.
fhmanas
Level 2
Level 2
Posts: 12
Joined: Wed Dec 03, 2008 3:14 am

Post by fhmanas »

has there been an update on the dll for printing, am still having landscape printing problems. It seems to get cut off for longer than letter size papers. It prints but it stops when it reaches the end of a letter sized page. Even if i output a pdf and print that it gets cut off the same way.

Please help.

BTW, I can't attach a sample PDF file, but here is a sample file I uploaded to my site for reference. http://www.jfriendly.net/Output.pdf which is a direct output from my program.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

fhmanas wrote:has there been an update on the dll for printing, am still having landscape printing problems. It seems to get cut off for longer than letter size papers. It prints but it stops when it reaches the end of a letter sized page. Even if i output a pdf and print that it gets cut off the same way.
Have you tried to print your PDF from native Linux program without using Wine? Also have you filed bug about this in Wine's bugzilla?
fhmanas
Level 2
Level 2
Posts: 12
Joined: Wed Dec 03, 2008 3:14 am

Post by fhmanas »

Just to update this thread, I finally solved this, traced it to a faulty pb5 dll which provides the print dialog so I now use the print dialog in the comdlg32.dll which works great
Locked