Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #4990 > unrolled thread
| Started by | BGeorge21@in.gr |
|---|---|
| First post | 2013-03-30 10:09 -0700 |
| Last post | 2013-04-01 08:18 -0700 |
| Articles | 13 — 4 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
Problem with print. Somebody help!!!!!!!!!! BGeorge21@in.gr - 2013-03-30 10:09 -0700
Re: Problem with print. Somebody help!!!!!!!!!! Alain Carpentier <alain.dot.carpentier@brutele.dot.be> - 2013-03-31 12:32 +0200
Re: Problem with print. Somebody help!!!!!!!!!! BGeorge <bgeorge21@in.gr> - 2013-04-02 01:04 -0700
Re: Problem with print. Somebody help!!!!!!!!!! BGeorge <bgeorge21@in.gr> - 2013-04-02 01:08 -0700
Re: Problem with print. Somebody help!!!!!!!!!! Alain Carpentier <alain.dot.carpentier@brutele.dot.be> - 2013-04-02 16:36 +0200
Re: Problem with print. Somebody help!!!!!!!!!! BGeorge <bgeorge21@in.gr> - 2013-04-03 02:23 -0700
Re: Problem with print. Somebody help!!!!!!!!!! Alain Carpentier <alain.dot.carpentier@brutele.dot.be> - 2013-04-03 14:01 +0200
Re: Problem with print. Somebody help!!!!!!!!!! BGeorge <bgeorge21@in.gr> - 2013-04-03 08:14 -0700
Re: Problem with print. Somebody help!!!!!!!!!! Alain Carpentier <alain.dot.carpentier@brutele.dot.be> - 2013-04-03 22:59 +0200
Re: Problem with print. Somebody help!!!!!!!!!! BGeorge <bgeorge21@in.gr> - 2013-04-04 12:23 -0700
Re: Problem with print. Somebody help!!!!!!!!!! BGeorge <bgeorge21@in.gr> - 2013-03-31 09:19 -0700
Re: Problem with print. Somebody help!!!!!!!!!! Gustavo Biasone <rosario.soft@gmail.com> - 2013-04-01 08:10 -0700
Re: Problem with print. Somebody help!!!!!!!!!! BGeorge <bgeorge21@in.gr> - 2013-04-01 08:18 -0700
| From | BGeorge21@in.gr |
|---|---|
| Date | 2013-03-30 10:09 -0700 |
| Subject | Problem with print. Somebody help!!!!!!!!!! |
| Message-ID | <66191c25-3a1c-459d-9743-43086d0c63cc@googlegroups.com> |
I have a problem with my prints.
Code:
METHOD PrintMyJob() CLASS WPrinting //PushButton
//Print
LOCAL oPrinter AS PrintingDevice
LOCAL structDevMode AS _WINDEVMODE
oPrinter:=PrintingDevice{}
structDevMode.dmCopies:=oDCSingleLineEdit1:Value
IF oCCRadioButton1:Pressed
structDevMode.dmOrientation:=1
ELSEIF oCCRadioButton2:Pressed
structDevMode.dmOrientation:=2
ENDIF
DO CASE
CASE oDCComboBox2:Value=="A3"
structDevMode.dmPaperSize:=8
CASE oDCComboBox2:Value=="A4"
structDevMode.dmPaperSize:=9
CASE oDCComboBox2:Value=="A5"
structDevMode.dmPaperSize:=11
CASE oDCComboBox2:Value=="B4"
structDevMode.dmPaperSize:=12
CASE oDCComboBox2:Value=="B5"
structDevMode.dmPaperSize:=13
ENDCASE
iSucess:=oPrinter:UpdateDevMode()
IF iSucess
Minima("Παρουσιάστηκε πρόβλημα με την εκτύπωση")//Message for problem with print
ELSE
oDCRichEdit1:Print(oPrinter)
ENDIF
oPrinter: Destroy()
SELF:EndDialog()
Sorry for my poor english!!!!
The problem is "oPrinter:UpdateDevMode()" not sucess everytime and always print in Α4,vertical printing and copies 1.
I checked that the arguments of structure "structDevMode" pass normally to oPrinter.
Also i checked in 3 different printers and the problem is the same.
Do you know someebody what am i do wrong?
Thanks and sory again for my poor english.
[toc] | [next] | [standalone]
| From | Alain Carpentier <alain.dot.carpentier@brutele.dot.be> |
|---|---|
| Date | 2013-03-31 12:32 +0200 |
| Message-ID | <kj93d0$5dd$1@speranza.aioe.org> |
| In reply to | #4990 |
Hello,
I had the same problem.
Maibe a bug in the SDK ?
Try this, it worked for me :
CLASS _PrintingDevice INHERIT PrintingDevice
METHOD UpdateDevMode() CLASS _PrintingDevice
LOCAL iRes as int
IF (pDevMode == null_ptr)
RETURN FALSE
ENDIF
//iRes := PCALL(gpfnDocumentProperties, NULL_PTR, hPrinter,
String2Psz(cDevice), NULL_PTR, pDevMode, DM_MODIFY)
//iRes = return allways -1
// see Remarks n° 5 in DocumentProperties() of Windows SDK
iRes := DocumentProperties(null_ptr, hPrinter, String2Psz(cDevice),
pDevMode, pDevMode, _or(DM_IN_BUFFER, DM_OUT_BUFFER))
RETURN (iRes >= 0)
Alain
Le 30/03/2013 18:09, BGeorge21@in.gr a écrit :
> I have a problem with my prints.
> Code:
> METHOD PrintMyJob() CLASS WPrinting //PushButton
> //Print
> LOCAL oPrinter AS PrintingDevice
> LOCAL structDevMode AS _WINDEVMODE
>
> oPrinter:=PrintingDevice{}
> structDevMode.dmCopies:=oDCSingleLineEdit1:Value
> IF oCCRadioButton1:Pressed
> structDevMode.dmOrientation:=1
> ELSEIF oCCRadioButton2:Pressed
> structDevMode.dmOrientation:=2
> ENDIF
> DO CASE
> CASE oDCComboBox2:Value=="A3"
> structDevMode.dmPaperSize:=8
> CASE oDCComboBox2:Value=="A4"
> structDevMode.dmPaperSize:=9
> CASE oDCComboBox2:Value=="A5"
> structDevMode.dmPaperSize:=11
> CASE oDCComboBox2:Value=="B4"
> structDevMode.dmPaperSize:=12
> CASE oDCComboBox2:Value=="B5"
> structDevMode.dmPaperSize:=13
> ENDCASE
> iSucess:=oPrinter:UpdateDevMode()
> IF iSucess
> Minima("Παρουσιάστηκε πρόβλημα με την εκτύπωση")//Message for problem with print
> ELSE
> oDCRichEdit1:Print(oPrinter)
> ENDIF
> oPrinter: Destroy()
> SELF:EndDialog()
>
> Sorry for my poor english!!!!
> The problem is "oPrinter:UpdateDevMode()" not sucess everytime and always print in Α4,vertical printing and copies 1.
> I checked that the arguments of structure "structDevMode" pass normally to oPrinter.
> Also i checked in 3 different printers and the problem is the same.
> Do you know someebody what am i do wrong?
>
> Thanks and sory again for my poor english.
>
[toc] | [prev] | [next] | [standalone]
| From | BGeorge <bgeorge21@in.gr> |
|---|---|
| Date | 2013-04-02 01:04 -0700 |
| Message-ID | <a55b18e4-4b7f-47cf-b099-b5063bb90f7d@googlegroups.com> |
| In reply to | #4993 |
Hi aAlain,
I tried with your way and be the same again. The only thing that differs is that the function "UpdateDevMode ()" returns true but still prints as before
i.e. Α4,vertical printing and copies 1.
regards
George
Τη Κυριακή, 31 Μαρτίου 2013 1:32:59 μ.μ. UTC+3, ο χρήστης Alain Carpentier έγραψε:
> Hello, I had the same problem. Maibe a bug in the SDK ? Try this, it worked for me : CLASS _PrintingDevice INHERIT PrintingDevice METHOD UpdateDevMode() CLASS _PrintingDevice LOCAL iRes as int IF (pDevMode == null_ptr) RETURN FALSE ENDIF //iRes := PCALL(gpfnDocumentProperties, NULL_PTR, hPrinter, String2Psz(cDevice), NULL_PTR, pDevMode, DM_MODIFY) //iRes = return allways -1 // see Remarks n° 5 in DocumentProperties() of Windows SDK iRes := DocumentProperties(null_ptr, hPrinter, String2Psz(cDevice), pDevMode, pDevMode, _or(DM_IN_BUFFER, DM_OUT_BUFFER)) RETURN (iRes >= 0) Alain Le 30/03/2013 18:09, BGeorge21@in.gr a écrit : > I have a problem with my prints. > Code: > METHOD PrintMyJob() CLASS WPrinting //PushButton > //Print > LOCAL oPrinter AS PrintingDevice > LOCAL structDevMode AS _WINDEVMODE > > oPrinter:=PrintingDevice{} > structDevMode.dmCopies:=oDCSingleLineEdit1:Value > IF oCCRadioButton1:Pressed > structDevMode.dmOrientation:=1 > ELSEIF oCCRadioButton2:Pressed > structDevMode.dmOrientation:=2 > ENDIF > DO CASE > CASE oDCComboBox2:Value=="A3" > structDevMode.dmPaperSize:=8 > CASE oDCComboBox2:Value=="A4" > structDevMode.dmPaperSize:=9 > CASE oDCComboBox2:Value=="A5" > structDevMode.dmPaperSize:=11 > CASE oDCComboBox2:Value=="B4" > structDevMode.dmPaperSize:=12 > CASE oDCComboBox2:Value=="B5" > structDevMode.dmPaperSize:=13 > ENDCASE > iSucess:=oPrinter:UpdateDevMode() > IF iSucess > Minima("Παρουσιάστηκε πρόβλημα με την εκτύπωση")//Message for problem with print > ELSE > oDCRichEdit1:Print(oPrinter) > ENDIF > oPrinter: Destroy() > SELF:EndDialog() > > Sorry for my poor english!!!! > The problem is "oPrinter:UpdateDevMode()" not sucess everytime and always print in Α4,vertical printing and copies 1. > I checked that the arguments of structure "structDevMode" pass normally to oPrinter. > Also i checked in 3 different printers and the problem is the same. > Do you know someebody what am i do wrong? > > Thanks and sory again for my poor english. >
[toc] | [prev] | [next] | [standalone]
| From | BGeorge <bgeorge21@in.gr> |
|---|---|
| Date | 2013-04-02 01:08 -0700 |
| Message-ID | <f2def972-673b-4a6a-bd79-2be4184245c8@googlegroups.com> |
| In reply to | #4993 |
Hi aAlain, I tried with your way and be the same again. The only thing that differs is that the function "UpdateDevMode ()" returns true but still prints as before i.e. Α4,vertical printing and copies 1. regards George
[toc] | [prev] | [next] | [standalone]
| From | Alain Carpentier <alain.dot.carpentier@brutele.dot.be> |
|---|---|
| Date | 2013-04-02 16:36 +0200 |
| Message-ID | <kjeqd0$9g8$1@speranza.aioe.org> |
| In reply to | #5001 |
Hi,
I do not know why.
Some untested ideas...
Support DocumentProperties() said :
-----------
To make changes to print settings that are local to an application, an
application should follow these steps:
1....
2....
3....
4.Modify the appropriate members of the returned DEVMODE structure and
indicate which members were changed by setting the corresponding bits in
the dmFields member of the DEVMODE.
a try :
structDevMode := oPrinter:GetDevMode()
// Change the appropriate member in the DevMode.
structDevMode.dmPaperSize := DMPAPER_A3 // 8
// Set the dmFields bit flag to indicate what you are changing.
structDevMode.dmFields := DM_PAPERSIZE
//
oPrinter:UpdateDevMode()
5.Call DocumentProperties and pass the modified DEVMODE structure back
as both the pDevModeInput and pDevModeOutput parameters and specify both
the DM_IN_BUFFER and DM_OUT_BUFFER values (which are combined using the
OR operator).
------------
Also check that the changes are supported ?
In C++ (I have no idea how this translates into VO : pDevMode->dmFields
& DM_ORIENTATION)
* Make changes to the DevMode which are supported.
*/
if (pDevMode->dmFields & DM_ORIENTATION)
{
/* If the printer supports paper orientation, set it.*/
pDevMode->dmOrientation = DMORIENT_LANDSCAPE;
}
if (pDevMode->dmFields & DM_DUPLEX)
{
/* If it supports duplex printing, use it. */
pDevMode->dmDuplex = DMDUP_HORIZONTAL;
}
Regards
Alain
Le 2/04/2013 10:08, BGeorge a écrit :
> Hi aAlain,
> I tried with your way and be the same again. The only thing that differs is that the function "UpdateDevMode ()" returns true but still prints as before
> i.e. Α4,vertical printing and copies 1.
>
> regards
> George
>
[toc] | [prev] | [next] | [standalone]
| From | BGeorge <bgeorge21@in.gr> |
|---|---|
| Date | 2013-04-03 02:23 -0700 |
| Message-ID | <16643773-2d14-43ca-bb65-87343dbda72e@googlegroups.com> |
| In reply to | #5002 |
Hi Alain, I checked everything you said but the problem its the same. Maybe there is bug with RichEdit control. That i want to do is to print my document and i follow this way: <my text> memprint+="Hello this is my print."+chr(10)+chr(13) memprint+="I have problem with my print."+chr(10+chr(13) memprint+="End of my print." oDCRichEdit:TextValue:=memprint oDCRichEdit:Print(oPrinter) Is there another way without richeditcontrol to do that? Regards George
[toc] | [prev] | [next] | [standalone]
| From | Alain Carpentier <alain.dot.carpentier@brutele.dot.be> |
|---|---|
| Date | 2013-04-03 14:01 +0200 |
| Message-ID | <kjh5mk$lpa$2@speranza.aioe.org> |
| In reply to | #5007 |
George, Can you test the sample application VOPad ? menu File > New Application > tab Samples > VOPad Regards Alain Le 3/04/2013 11:23, BGeorge a écrit : > Hi Alain, > > I checked everything you said but the problem its the same. Maybe there is bug with RichEdit control. > That i want to do is to print my document and i follow this way: > <my text> > memprint+="Hello this is my print."+chr(10)+chr(13) > memprint+="I have problem with my print."+chr(10+chr(13) > memprint+="End of my print." > oDCRichEdit:TextValue:=memprint > oDCRichEdit:Print(oPrinter) > > Is there another way without richeditcontrol to do that? > > Regards > George >
[toc] | [prev] | [next] | [standalone]
| From | BGeorge <bgeorge21@in.gr> |
|---|---|
| Date | 2013-04-03 08:14 -0700 |
| Message-ID | <11ccf44c-96ac-4296-8a3a-39bfb007fa0b@googlegroups.com> |
| In reply to | #5008 |
Alain, I have tested the application but PageSetup brings message "Not yet implemented." In RichEdit:PrintSetup prints without problem. Regards George
[toc] | [prev] | [next] | [standalone]
| From | Alain Carpentier <alain.dot.carpentier@brutele.dot.be> |
|---|---|
| Date | 2013-04-03 22:59 +0200 |
| Message-ID | <kji580$fl7$1@speranza.aioe.org> |
| In reply to | #5009 |
Hi Georges,
With this Method, the PrintSetup window is displayed. Select the paper
size and orientation. The editing window is adjusted accordingly.
There is still work to adapt other Methods taking into account the
choice (FilePrinterSetup and FilePrint) for examples oPrinter as a
export variable of PadShellWindow and oRichEdit:Print(oPrinter) instead
of oRichEdit:Print().
METHOD RTFPageSetup() CLASS PadWin
LOCAL structDevMode as _WINDEVMODE
LOCAL oPrinter as OBJECT
LOCAL hDC as ptr
LOCAL pt is _WINPOINT
LOCAL liOldMapMode as LONG
oPrinter := PrintingDevice{}
IF oPrinter:IsValid()
if oPrinter:SetUp()
structDevMode := oPrinter:GetDevMode()
IF structDevMode.dmOrientation = DMORIENT_LANDSCAPE
self:nWidth := Integer(oPrinter:PaperHeight * 5.67)
ELSE
self:nWidth := Integer(oPrinter:PaperWidth* 5.67)
ENDIF
hDC := CreateCompatibleDC(null)
IF SendMessage(oDCRichEdit:Handle(), EM_SETTARGETDEVICE,
DWORD(_cast, hDC), self:nWidth) != 0
SetProp(oDCRichEdit:Handle(), String2Psz("TargetDC"), hDC)
ELSE
DeleteDC(hDC)
ENDIF
hDC := GetDC(self:Handle())
liOldMapMode := SetMapMode(hDC, MM_TWIPS)
pt.x := nWidth
pt.y := 0
LPtoDP(hDC, @pt, 1)
SetMapMode(hDC, liOldMapMode)
DeleteDC(hDC)
self:nWidth := int(pt.x * 1.181019332162)
self:RePaint()
ENDIF
ENDIF
return self
Regards
Alain
Le 3/04/2013 17:14, BGeorge a écrit :
> Alain,
>
> I have tested the application but PageSetup brings message "Not yet implemented."
> In RichEdit:PrintSetup prints without problem.
> Regards
> George
>
[toc] | [prev] | [next] | [standalone]
| From | BGeorge <bgeorge21@in.gr> |
|---|---|
| Date | 2013-04-04 12:23 -0700 |
| Message-ID | <14223437-b559-4b38-b2b1-a8c38a16fff5@googlegroups.com> |
| In reply to | #5013 |
Alain, Thats'it. It works perfect!!!! Thank you Alain for all. Regards George.
[toc] | [prev] | [next] | [standalone]
| From | BGeorge <bgeorge21@in.gr> |
|---|---|
| Date | 2013-03-31 09:19 -0700 |
| Message-ID | <4dab7b4f-beb8-4fd2-a992-ad66f3b9de41@googlegroups.com> |
| In reply to | #4990 |
Τη Σάββατο, 30 Μαρτίου 2013 7:09:28 μ.μ. UTC+2, ο χρήστης BGeorge έγραψε:
> I have a problem with my prints. Code: METHOD PrintMyJob() CLASS WPrinting //PushButton //Print LOCAL oPrinter AS PrintingDevice LOCAL structDevMode AS _WINDEVMODE oPrinter:=PrintingDevice{} structDevMode.dmCopies:=oDCSingleLineEdit1:Value IF oCCRadioButton1:Pressed structDevMode.dmOrientation:=1 ELSEIF oCCRadioButton2:Pressed structDevMode.dmOrientation:=2 ENDIF DO CASE CASE oDCComboBox2:Value=="A3" structDevMode.dmPaperSize:=8 CASE oDCComboBox2:Value=="A4" structDevMode.dmPaperSize:=9 CASE oDCComboBox2:Value=="A5" structDevMode.dmPaperSize:=11 CASE oDCComboBox2:Value=="B4" structDevMode.dmPaperSize:=12 CASE oDCComboBox2:Value=="B5" structDevMode.dmPaperSize:=13 ENDCASE iSucess:=oPrinter:UpdateDevMode() IF iSucess Minima("Παρουσιάστηκε πρόβλημα με την εκτύπωση")//Message for problem with print ELSE oDCRichEdit1:Print(oPrinter) ENDIF oPrinter: Destroy() SELF:EndDialog() Sorry for my poor english!!!! The problem is "oPrinter:UpdateDevMode()" not sucess everytime and always print in Α4,vertical printing and copies 1. I checked that the arguments of structure "structDevMode" pass normally to oPrinter. Also i checked in 3 different printers and the problem is the same. Do you know someebody what am i do wrong? Thanks and sory again for my poor english.
I will try Alain.
Thanks anyway...
[toc] | [prev] | [next] | [standalone]
| From | Gustavo Biasone <rosario.soft@gmail.com> |
|---|---|
| Date | 2013-04-01 08:10 -0700 |
| Message-ID | <fc1b2f9d-ef2c-48b7-8da2-c73ffe329e45@googlegroups.com> |
| In reply to | #4990 |
Hi,
I don't see the line where you initialize structDevMode:
structDevMode := oPrinter:GetDevMode()
HTH
Gustavo
> I have a problem with my prints.
>
> Code:
>
> METHOD PrintMyJob() CLASS WPrinting //PushButton
>
> //Print
>
> LOCAL oPrinter AS PrintingDevice
>
> LOCAL structDevMode AS _WINDEVMODE
>
>
>
> oPrinter:=PrintingDevice{}
>
> structDevMode.dmCopies:=oDCSingleLineEdit1:Value
>
> IF oCCRadioButton1:Pressed
>
> structDevMode.dmOrientation:=1
>
> ELSEIF oCCRadioButton2:Pressed
>
> structDevMode.dmOrientation:=2
>
> ENDIF
>
> DO CASE
>
> CASE oDCComboBox2:Value=="A3"
>
> structDevMode.dmPaperSize:=8
>
> CASE oDCComboBox2:Value=="A4"
>
> structDevMode.dmPaperSize:=9
>
> CASE oDCComboBox2:Value=="A5"
>
> structDevMode.dmPaperSize:=11
>
> CASE oDCComboBox2:Value=="B4"
>
> structDevMode.dmPaperSize:=12
>
> CASE oDCComboBox2:Value=="B5"
>
> structDevMode.dmPaperSize:=13
>
> ENDCASE
>
> iSucess:=oPrinter:UpdateDevMode()
>
> IF iSucess
>
> Minima("Παρουσιάστηκε πρόβλημα με την εκτύπωση")//Message for problem with print
>
> ELSE
>
> oDCRichEdit1:Print(oPrinter)
>
> ENDIF
>
> oPrinter: Destroy()
>
> SELF:EndDialog()
>
>
>
> Sorry for my poor english!!!!
>
> The problem is "oPrinter:UpdateDevMode()" not sucess everytime and always print in Α4,vertical printing and copies 1.
>
> I checked that the arguments of structure "structDevMode" pass normally to oPrinter.
>
> Also i checked in 3 different printers and the problem is the same.
>
> Do you know someebody what am i do wrong?
>
>
>
> Thanks and sory again for my poor english.
[toc] | [prev] | [next] | [standalone]
| From | BGeorge <bgeorge21@in.gr> |
|---|---|
| Date | 2013-04-01 08:18 -0700 |
| Message-ID | <c94cf0b4-46f5-4b3a-9fe8-8a2936c0aede@googlegroups.com> |
| In reply to | #4997 |
Hi Gustavo,
Sorry, I forgot to write the line but in my code there is. It is after the line oPrinter:=PrintingDevice{}
Thank you
Regards
George
Τη Δευτέρα, 1 Απριλίου 2013 6:10:21 μ.μ. UTC+3, ο χρήστης Gustavo Biasone έγραψε:
> Hi,
>
>
>
> I don't see the line where you initialize structDevMode:
>
>
>
> structDevMode := oPrinter:GetDevMode()
>
>
>
> HTH
>
> Gustavo
>
>
>
>
>
> > I have a problem with my prints.
>
> >
>
> > Code:
>
> >
>
> > METHOD PrintMyJob() CLASS WPrinting //PushButton
>
> >
>
> > //Print
>
> >
>
> > LOCAL oPrinter AS PrintingDevice
>
> >
>
> > LOCAL structDevMode AS _WINDEVMODE
>
> >
>
> >
>
> >
>
> > oPrinter:=PrintingDevice{}
>
> >
>
> > structDevMode.dmCopies:=oDCSingleLineEdit1:Value
>
> >
>
> > IF oCCRadioButton1:Pressed
>
> >
>
> > structDevMode.dmOrientation:=1
>
> >
>
> > ELSEIF oCCRadioButton2:Pressed
>
> >
>
> > structDevMode.dmOrientation:=2
>
> >
>
> > ENDIF
>
> >
>
> > DO CASE
>
> >
>
> > CASE oDCComboBox2:Value=="A3"
>
> >
>
> > structDevMode.dmPaperSize:=8
>
> >
>
> > CASE oDCComboBox2:Value=="A4"
>
> >
>
> > structDevMode.dmPaperSize:=9
>
> >
>
> > CASE oDCComboBox2:Value=="A5"
>
> >
>
> > structDevMode.dmPaperSize:=11
>
> >
>
> > CASE oDCComboBox2:Value=="B4"
>
> >
>
> > structDevMode.dmPaperSize:=12
>
> >
>
> > CASE oDCComboBox2:Value=="B5"
>
> >
>
> > structDevMode.dmPaperSize:=13
>
> >
>
> > ENDCASE
>
> >
>
> > iSucess:=oPrinter:UpdateDevMode()
>
> >
>
> > IF iSucess
>
> >
>
> > Minima("Παρουσιάστηκε πρόβλημα με την εκτύπωση")//Message for problem with print
>
> >
>
> > ELSE
>
> >
>
> > oDCRichEdit1:Print(oPrinter)
>
> >
>
> > ENDIF
>
> >
>
> > oPrinter: Destroy()
>
> >
>
> > SELF:EndDialog()
>
> >
>
> >
>
> >
>
> > Sorry for my poor english!!!!
>
> >
>
> > The problem is "oPrinter:UpdateDevMode()" not sucess everytime and always print in Α4,vertical printing and copies 1.
>
> >
>
> > I checked that the arguments of structure "structDevMode" pass normally to oPrinter.
>
> >
>
> > Also i checked in 3 different printers and the problem is the same.
>
> >
>
> > Do you know someebody what am i do wrong?
>
> >
>
> >
>
> >
>
> > Thanks and sory again for my poor english.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web