Hi
i have a problem with preview: print... preview
sometimes it works and sometimes no :i see a blank page and when i print it i allready have a blank page
If i delete the "preview" it will print very well
Some other days the preview works good.
Can everybody explain me how the preview works?
I' using FW 2.1
Thanks
PREVIEW PROBLEM
- Otto
- Posts: 6400
- Joined: Fri Oct 07, 2005 7:07 pm
- Has thanked: 9 times
- Been thanked: 2 times
- Contact:
Preview makes a temp-file to windows-temp folder. If you get an error during printing the temp-file is still there and locked. And the new file can't be created because FW uses always the same name. I changed printer class for me.
Otto
METHOD _StartPage() CLASS TPrinter
LOCAL lSetFixed
LOCAL aDirTMP := {}
If ::hDC = 0
Return NIL
endif
lSetFixed := Set(_SET_FIXED,.F.)
if !::lMeta .AND. !::lStarted
::lStarted := .T.
StartDoc( ::hDC, ::cDocument )
endif
::nPage++
if ::lMeta
aDirTMP := directory(::cDir+"\*.wmf", "D")
AAdd(::aMeta,::cDir+"\T"+ALLTRIM(STR(len(aDirTMP)+1))+Padl(::nPage,4,"0")+".wmf")
::hDCOut := CreateMetaFile(Atail(::aMeta))
else
StartPage(::hDC)
endif
Set(_SET_FIXED,lSetFixed )
Return NIL
Otto
METHOD _StartPage() CLASS TPrinter
LOCAL lSetFixed
LOCAL aDirTMP := {}
If ::hDC = 0
Return NIL
endif
lSetFixed := Set(_SET_FIXED,.F.)
if !::lMeta .AND. !::lStarted
::lStarted := .T.
StartDoc( ::hDC, ::cDocument )
endif
::nPage++
if ::lMeta
aDirTMP := directory(::cDir+"\*.wmf", "D")
AAdd(::aMeta,::cDir+"\T"+ALLTRIM(STR(len(aDirTMP)+1))+Padl(::nPage,4,"0")+".wmf")
::hDCOut := CreateMetaFile(Atail(::aMeta))
else
StartPage(::hDC)
endif
Set(_SET_FIXED,lSetFixed )
Return NIL
- Antonio Linares
- Site Admin
- Posts: 42412
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 12 times
- Been thanked: 48 times
- Contact:
- Antonio Linares
- Site Admin
- Posts: 42412
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 12 times
- Been thanked: 48 times
- Contact: