V11 crashes on PRINT SELECTION

View: New views
6 Messages — Rating Filter:   Alert me  

V11 crashes on PRINT SELECTION

by softmartin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hallo,
I am having big problems with print commands. The programme crashes  
every time that I try to execute the following command :

OUTPUT FORM([TRADER];"TR_PRINT2")
        PRINT SELECTION([TRADER])

The background :
  the user makes a selection in the standard list form of the  
table,then selects print in my menu bar which fires the above code.  
The output form was built using the wizard.
I am running 4d v11 (developer) on a MAC with 10.5.2. I am not  
compiling the app but using it with runtime.
The 2 print dialogs are shown, the crash occurs when user hits print  
( or preview or PDF)
TIA
Martin

**********************************************************************
4D Basics hosted by 4D, Inc.                       http://www.4D.com/

Better, faster, more powerful code.
Learn how without leaving the office!
http://www.4d.com/support/training.html

To Unsubscribe:                        mailto:4DBasics-off@...
**********************************************************************



Re: V11 crashes on PRINT SELECTION

by Tom Dillon-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Martin Christopherson sez:

>The 2 print dialogs are shown, the crash occurs when user hits print
>( or preview or PDF)

Here are a few easy things to try:

Remove any code from the form to make sure there isn't something going
on there. One thing in particular that will cause a crash is changing
the current record of the table called in Print Selection while
printing. Querying, Print Selection, Selection to Array, etc. will cause
this, along with regular record navigation calls.

If this doesn't help, it may be something about the form itself. Create
a new form with only a since object on it and print using that. If it
doesn't crash, it's likely something about TR_PRINT2. If it crashes,
then something scarier is going on.

BTW, does this happen on any machine?

--
   ------------------------------------------------------------------
   Tom Dillon                                        900 S. Coors Dr.
   DataCraft                                       Lakewood, CO 80228
   TomDillon@...                           720/962-4880
   ------------------------------------------------------------------
      The whole problem with the world is that fools and fanatics
      are always so certain of themselves, but wiser people so full
      of doubts. --- Bertrand Russell
   ------------------------------------------------------------------



**********************************************************************
4D Basics hosted by 4D, Inc.                       http://www.4D.com/

Better, faster, more powerful code.
Learn how without leaving the office!
http://www.4d.com/support/training.html

To Unsubscribe:                        mailto:4DBasics-off@...
**********************************************************************



Re: V11 crashes on PRINT SELECTION

by Vahdat Dastpak :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi there,

Are you using the function SUM in your form? If yes, replace it with  
the function Subtotal. In some cases function SUM causes 4D to crash  
while printing.

Sincerely Yours,

Vahdat Dastpak.

--------------------------------------------------------
Vahdat Dastpak
Neviseh Pardaz
EMail:    vahdat@...
Phone:  +1 (778) 340-3500
Cell:       +1 (778) 322-1124
--------------------------------------------------------



On May 12, 2008, at 4:31 AM, martin christopherson wrote:

> Hallo,
> I am having big problems with print commands. The programme crashes  
> every time that I try to execute the following command :
>
> OUTPUT FORM([TRADER];"TR_PRINT2")
> PRINT SELECTION([TRADER])
>
> The background :
>  the user makes a selection in the standard list form of the  
> table,then selects print in my menu bar which fires the above code.  
> The output form was built using the wizard.
> I am running 4d v11 (developer) on a MAC with 10.5.2. I am not  
> compiling the app but using it with runtime.
> The 2 print dialogs are shown, the crash occurs when user hits  
> print ( or preview or PDF)
> TIA
> Martin
>
> **********************************************************************
> 4D Basics hosted by 4D, Inc.                       http://www.4D.com/
>
> Better, faster, more powerful code.Learn how without leaving the  
> office!
> http://www.4d.com/support/training.html
>
> To Unsubscribe:                        mailto:4DBasics-off@...
> **********************************************************************
>


**********************************************************************
4D Basics hosted by 4D, Inc.                       http://www.4D.com/

Better, faster, more powerful code.
Learn how without leaving the office!
http://www.4d.com/support/training.html

To Unsubscribe:                        mailto:4DBasics-off@...
**********************************************************************



Re: V11 crashes on PRINT SELECTION

by Beverly Pryor :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I had a similar experience, and it appeared to be related to trying to  
print a report that did not fit on the paper size that I had  
specified.  V11 tried to change the paper size to one that fit the  
layout, but my printer driver was having none of it.  Moving the  
fields to within the proper margins solved the problem.


**************************
Beverly Pryor
248-626-3170
bepryor@...

On May 12, 2008, at 7:31 AM, martin christopherson wrote:

> Hallo,
> I am having big problems with print commands. The programme crashes  
> every time that I try to execute the following command :
>
> OUTPUT FORM([TRADER];"TR_PRINT2")
> PRINT SELECTION([TRADER])
>
> The background :
> the user makes a selection in the standard list form of the  
> table,then selects print in my menu bar which fires the above code.  
> The output form was built using the wizard.
> I am running 4d v11 (developer) on a MAC with 10.5.2. I am not  
> compiling the app but using it with runtime.
> The 2 print dialogs are shown, the crash occurs when user hits print  
> ( or preview or PDF)
> TIA
> Martin
>
> **********************************************************************
> 4D Basics hosted by 4D, Inc.                       http://www.4D.com/
>
> Better, faster, more powerful code.Learn how without leaving the  
> office!
> http://www.4d.com/support/training.html
>
> To Unsubscribe:                        mailto:4DBasics-off@...
> **********************************************************************
>
>


**********************************************************************
4D Basics hosted by 4D, Inc.                       http://www.4D.com/

Better, faster, more powerful code.
Learn how without leaving the office!
http://www.4d.com/support/training.html

To Unsubscribe:                        mailto:4DBasics-off@...
**********************************************************************



Parent Message unknown Re: V11 crashes on PRINT SELECTION

by Jesse Pina :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


This behavior has previously been reported on Mac OS and the QA department
is currently looking into it.

In the meantime, try using the following code snippet, which is equivalent
to your previous code.

OUTPUT FORM([TRADER];"TR_PRINT2")
PRINT SETTINGS(2)
If(OK=1)
        PRINT SELECTION([TRADER];>)
End if


martin christopherson wrote:
> The programme crashes every time that I try to execute the following
command:
> OUTPUT FORM([TRADER];"TR_PRINT2")
> PRINT SELECTION([TRADER])


--
Jesse Pina
Technical Services Team Member
4D, Inc.

**********************************************************************
4D Basics hosted by 4D, Inc.                       http://www.4D.com/

Better, faster, more powerful code.
Learn how without leaving the office!
http://www.4d.com/support/training.html

To Unsubscribe:                        mailto:4DBasics-off@...
**********************************************************************



Parent Message unknown Re: V11 crashes on PRINT SELECTION

by softmartin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks to everyone who responded.
I managed to print without the app crashing, by using the output form  
option in the wizard instead of the print output form option. It seems  
the wizard doesn´t wizz !
Martin
**********************************************************************
4D Basics hosted by 4D, Inc.                       http://www.4D.com/

The 4D v11 SQL Roadshow - coming to a city near you!
http://www.4D.com/roadshow/index.html

To Unsubscribe:                        mailto:4DBasics-off@...
**********************************************************************