When running a query for a particular invoice, the print preview box opens as it should and is defaulted to 'print'. If I select preview instead, the invoice opens in preview mode and immediately minimizes (the preview does not stay in full screen view mode) If I change the default to preview it still minimizes the resulting preview.
This does not happen on my print statements which is using the same exact print/preview code. This does NOT happen in AlphaSports. This tells me that it is not a bug and that it does not have anything to do with the version of v6 that I am running.
This leads ne to believe that there is something else within my print invoice form itself that might be causing the problem.
For form events on the invoice I have OnInit
'Maximize in current form.
topparent.maximize()
The form also is using the OnKey event: formselect()
My print statements forms uses the same exact events and code. Both forms use buttons. The only difference between the two is the report that it actually prints.
I compared both reports and there are no differences between them. NOTE: when opening either report directly they preview as should in the invoice and customer statement.
I can't find anything that is causing this. Please help. I have deleting a lot of files in an attempt to get the db below 5 mb so I could attach it here, hopefully I did not delete any records needed.
To duplicate the error:
Open the f_prt_inv form, print invoices by company, type allstate leasing, click ok, select preview, click ok. You will see the invoice preview open and immediately minimize to the bottom of the screen.
Now go to f_prt_stmt and repeat the same process. The preview opens and stays open without minimizing.
Allstate Leasing is on invoice/statement that I know all the necessary records are in this copy of the db without returning any errors.
This does not happen on my print statements which is using the same exact print/preview code. This does NOT happen in AlphaSports. This tells me that it is not a bug and that it does not have anything to do with the version of v6 that I am running.
This leads ne to believe that there is something else within my print invoice form itself that might be causing the problem.
For form events on the invoice I have OnInit
'Maximize in current form.
topparent.maximize()
The form also is using the OnKey event: formselect()
My print statements forms uses the same exact events and code. Both forms use buttons. The only difference between the two is the report that it actually prints.
I compared both reports and there are no differences between them. NOTE: when opening either report directly they preview as should in the invoice and customer statement.
I can't find anything that is causing this. Please help. I have deleting a lot of files in an attempt to get the db below 5 mb so I could attach it here, hopefully I did not delete any records needed.
To duplicate the error:
Open the f_prt_inv form, print invoices by company, type allstate leasing, click ok, select preview, click ok. You will see the invoice preview open and immediately minimize to the bottom of the screen.
Now go to f_prt_stmt and repeat the same process. The preview opens and stays open without minimizing.
Allstate Leasing is on invoice/statement that I know all the necessary records are in this copy of the db without returning any errors.
Comment