Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Print Perview Error
Message
De
21/04/2005 17:30:55
 
 
À
21/04/2005 17:01:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01006408
Message ID:
01007276
Vues:
13
Yes, same exact error with your code below.

Jeff


Does this do the same thing:


LOCAL oPreviewForm
oPreviewForm = createOBJECT('PreviewForm')

REPORT FORM (REPNOW) TO PRINTER PROMPT WINDOW PREVIEWFORM PREVIEW

oPreviewForm.Release

RETURN


DEFINE CLASS previewform AS form


Height = 250
Width = 375
Desktop = .F.
ShowWindow = 2
ScrollBars = 3
DoCreate = .T.
AutoCenter = .T.
BorderStyle = 3
Caption = "Print Preview Window"
ControlBox = .F.
Closable = .F.
MinButton = .F.
Movable = .F.
WindowType = 0
WindowState = 2
AlwaysOnTop = .F.
onkeyctrlf10 = "''"
Name = "previewform"


PROCEDURE QueryUnload
lcoldctrlf10setting = THISFORM.onkeyctrlf10
IF !EMPTY(lcoldctrlf10setting)
ON KEY LABEL CTRL+F10 &lcoldctrlf10setting
ENDIF
ENDPROC


PROCEDURE Init
DODEFAULT()
THISFORM.onkeyctrlf10 = ON('KEY LABEL','CTRL+F10')
ON KEY LABEL CTRL+F10
THIS.SHOW()
CLEAR TYPEAHEAD
ENDPROC


PROCEDURE Deactivate
DODEFAULT()
IF WEXIST('Report Designer')
MOUSE DBLCLICK AT -0.1,0.1 WINDOW "Report Designer"
ENDIF
IF WEXIST('Print Preview')
MOUSE DBLCLICK AT -0.1,0.1 WINDOW "Print Preview"
ENDIF
keyboard "{ctrl+f10}"
ENDPROC


ENDDEFINE
>Tracy,
>
>I have an HP LasetJet 1000 and Brother Laser Jet - no dot matrix printers. I uninstalled all printers and just had the generic text one installed.
>
>I installed the HP LaserJet 4 driver but agan no luck. It doesn't seem to matter what printer is setup from the HP drivers to the Generic Text, same error.
>
>The printers are all connected through our network - server 2000.
>
>Your recap is correct although when I try in development mode - everything seems fine.
>
>Code:
>--------------------
>RepNow = "DBDiv.FRX"
>REPORT FORM (RepNow) PREVIEW
>--------------------
>
>I remember in VFP6 we had a similar error and we had to put
>the following to fix the issue:
>--------------------
>declare _fpreset() in msvcrt20.dll
>_fpreset()
>RepNow = "DBDiv.FRX"
>REPORT FORM (RepNow) PREVIEW
>_fpreset()
>--------------------
>
>Thanks,
>
>Jeff
>
>
>What is the actual make and manufacturer of one of the printers you are testing with? Is it a laserjet? Does it recognize the HP PCL language? If so, test with MSFT's HP Laserjet 4 driver for instance. Or does it always happen with dot matrix printers only? Is the printer a GDI printer or does it occur when using all types of printers? Does it matter whether the printer is connected via Novell, a windows network, or if the printer is physically attached to the workstation?
>
>To recap to make sure I understand correctly:
>You have tried using the standard SVGA video driver, deleting the foxuser files used in the app, and using a generic printer driver. It occurs on machines with different motherboards, video cards, printers, cmos settings, and operating systems.
>
>Can you post the code that is run typically when it occurs? The code that launches the report in print preview mode? Any other forms in your app or other apps running when this occurs? Can you reproduce this in development mode also?
>
>
>
>>Track,
>>
>>I uninstalled all printers on our test machine - installed just the Generic Text printer and get the same results. This machine is using XP Pro.
>>
>>I also put the MEMLIMIT=80,1024,1024 line in our config.fpw and tried the SYS(3050,1,17000000) command in the code.
>>
>>Same results - any other ideas come to mind?
>>
>>Thanks for all of your suggestions.
>>
>>Jeff
>>
>>
>>We have a memlimit setting of MEMLIMIT=80,1024,1024 but this is typically caused by the printer driver I think. I would try a different printer driver - if using the manufacturer's then try MSFT's, etc.
>>
>>
>>
>>>Hi Tracy,
>>>
>>>The machines all have differnt Video drivers - some are desktop's and others are laptops. I set to the generic svga driver with no luck - same error.
>>>
>>>The vm is set to 765Megs on my test machine.
>>>
>>>Our Config.fpw is :
>>>
>>>MVCOUNT = 65000
>>>Title =
>>>SCREEN=OFF
>>>SYSMENU = OFF
>>>Status Bar = OFF
>>>talk = off
>>>
>>>Should we have a memory setting in here?
>>>
>>>Thanks,
>>>
>>>Jeff
>>Vita contingit. Vive cum eo.
>>(Life Happens, Live With it!)
>>
>>Using Win32 Functions in Visual Foxpro.
>>
>>
>>"Life is not measured by the number of
>>breaths we take, but by the moments
>>that take our breath away." -- author unknown
>Vita contingit. Vive cum eo.
>(Life Happens, Live With it!)
>
>Using Win32 Functions in Visual Foxpro.
>
>
>"Life is not measured by the number of
Vita contingit. Vive cum eo.
(Life Happens, Live With it!)

Using Win32 Functions in Visual Foxpro.


"Life is not measured by the number of
breaths we take, but by the moments
that take our breath away." -- author unknown
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform