Re: [Bug] b15 pv3: Page margins not correct for printing

  • From: rblist@xxxxxx
  • To: ftcdev@xxxxxxxxxxxxx
  • Date: Sat, 19 Jan 2008 04:06:48 -0500


Thank you for your answere, Brendan. 


1. "Print Setup Dialog" and "Print Dialog"


I do agree that the "page setup" and the "print dialog" issues are RealBasic 
functionality. This is really beyond the
scope of the Formatted Text Control. So you can skip this issues. However, I 
did some more testing on printing the sample document and I think that I found 
an issue.





2. Printing in "Page View Mode"



When printing in "Page View Mode" the page for printing will be formatted as if 
it is in "Edit View Mode".



To reproduce this behavior please select the landscape (not the default 
portrait) mode in the print setup dialog. You will find the text lines wraps at 
the page border and not wrap as in "Normal View Mode" or "Page View Mode". 

I would expect "What you see is what you get" in "Page View Mode". So the lines 
should break at the line end as you see on the screen.





3. Setting up the inch based US Paper Format in Europe (a metric country)


I setup the US Letter Format and set the page margins to inch values (1 inch = 
25,4 mm). This should be the same as the US Format.

When I print page one of the sample document FTC prints one more line then 
shown on screen. This is a bug for me since in "Page View Mode" it should not 
be allowed to print more lines then you see on screen.

Also the word wrapping is not the same then on screen. FTC prints one or two 
words more per line. This also shows that FTC formats the text as if it is in 
"Edit View Mode". Instead in "Page View Mode" everything should be "What you 
see is what you get".


Currently my conclusion is that FTC does not allow to print correctly in Page 
View Mode".

My question is:

(A) What do you get when you print page one. Is it the same as shown on screen? 
So do you get a correct printing result on Microsoft Windows?
(B) Is it correct for me to expect "What you see is what you get" in "Page View 
Mode"?
(C) Does the difference in the dpi setting matter for printing with FTC? 
Windows is 96 dpi and OSX is 72 dpi?







 





 



-----Original Message----- 

From: Brendan Murphy <bmurphy@xxxxxxxxxxxxxxxxxxxxx>

To: ftcdev@xxxxxxxxxxxxx

Send: Sa., 19. Jan. 2008, 8:08

Topic: Re: [Bug] b15 pv3: Page margins not correct for printing












> Following you find steps to reproduce a printing problem.?


>?


> When printing on Microsoft Windows (with metric measurement settings > in 
> Europe) the first page of the sample document has two more lines > then the 
> "page view". So "what you see is not what you get"...?

?


I want to make sure we have all the facts straight here. In the?


demo application in page mode the page size is set to US Letter.?


If you print in another page size such as A4, you will see a?


difference on what is on each page verses the display. If you?


change the display page size to A4, then they should match. Does?


my explanation cover what you are seeing? In a real application,?


you would coordinate the printer setup page size and the display?


page size more closely.?

?


> It might be a problem of the default margins of the printersetup > that is 
> called before printing.?


>?


> Additionally it is a little bit confusing that the default > (Operationg 
> System) page setup dialog that shows up before printing > does not show the 
> correct page margins.?

?


How you handle this situation is up to you, but you need to pass?


in a valid PrinterSetup object to the print method so that it can?


get metric information on what you want to print. So in the demo?


application, if the user hasn't invoked the Page Setup menu item,?


it is invoked automatically for them the first time they print.?


You may need to create a custom page setup dialog like Microsoft?


Word does and handle it differently.?

?


> Example: When you change the left page margin at "Format - Adjust > Margins" 
> to a value of Left = 2 inches then the page setup dialog > still shows 1 
> inch. Another small issue might be that in Europe > (metric) shows 25 mm for 
> 1 inch which should be 25,4 mm.?

?


Another sore spot for printing under Windows is what you mentioned?


above. It makes no sense for the page setup dialog to set up?


margins for a word processor since it is handling the margins for?


you. Again, this is beyond the control of the FTC and you need to?


implement a specific solution for your application. In the future?


I may enhance the demo application to use a custom solution.?

?


Note, the GUI I set up in the demo application is for?


demonstration purposes only and you should invest time in coming?


up with the best GUI solution for your application.?

?


> It might be a good idea to use "declares" for Microsoft Windows to > set the 
> values for the page setup dialog. Aaron Ballman should have > it all in his 
> "Windows Functionality Suite".?

?


Can you be more specific here? I didn't see anything in there that?


would help.?

?


> Here are the steps to reprocude the printing problem:?


>?


> 1. Start FTC?


> 2. Call Print Dialog?


> 3. (Press OK to accept the settings of the print setup dialog)?


> 4. Select just to print page 0?


> 5. Compare the last two lines of the printed page with the screen > output in 
> the default "page view" mode.?


> 6. Bug: The first page has two more lines as the page view mode on > screen.?

?


I don't thing there is a problem here other than not coordinating?


the page setup size with the display size.?

?


If you search the NUG archives, you will see various people?


talking about the above issues when printing under Windows. RS?


really needs to fix the Windows side of things.?

?



FTC Website: www.truenorthsoftware.com/Realbasic/FormattedText.html?


Set List Options (digest and vacation modes): www.freelists.org/list/ftcdev?


List Archive: www.freelists.org/archives/ftcdev?


Unsubscribe: Send email to ftcdev-request@xxxxxxxxxxxxx with "unsubscribe" in 
the subject field.?

?






 


________________________________________________________________________
Bei AOL gibt's jetzt kostenlos eMail f?r alle.  Klicken Sie auf AOL.de um 
heraus zu finden, was es sonst noch kostenlos bei AOL gibt.

Other related posts: