Forum | | | | - page 1 - |
|  Julian Schmidt | Hey gens, pourquoi druckt qui Voir le texte source cela Array pas aus? comment peux je aussi den Text une autre Schriftart donner (Über UseFont ca va malheureusement pas)?
$H Windows.ph
Def @ChoosePrinter(1) !"COMDLG32.DLL", "PrintDlgA"
Déclarer DOCINFO#, text$[]
Struct DOCINFO = cbSize&,lpszDocName&,lpszOutput&,lpszDatatype&,fwType&
Faible DOCINFO#, DOCINFO
Déclarer PRINTDLG#
Struct PRINTDLG = lStructSize&,hWndOwner&,hDevMode&,hDevNames&,hDC&,Flags&,nFromPage%,nToPage%,nMinPage%,nMaxPage%,nCopies%,hInstance&,lCustData&,lpfnPrintHook&,lpfnSetupHook&,lpPrintTemplateName&,lpPrintSetupTemplateName&,hPrintTemplate&,hSetupTemplate&
Faible PRINTDLG#, PRINTDLG
Def &PD_RETURNDC $100
Déclarer PrintText$, DocName$
DocName$ = "Array Ausdrucken"
With DOCINFO#
.cbSize& = @SizeOf(DOCINFO#)
.lpszDocName& = @Addr(DocName$)
.lpszOutput& = 0
EndWith
With PRINTDLG#
.lStructSize& = @SizeOf(PRINTDLG#)
.hWndOwner& = %hWnd
.hDevMode& = 0
.Flags& = &PD_RETURNDC
.hDevNames& = 0
.hInstance& = %hInstance
.lpfnPrintHook& = 0
.lpfnSetupHook& = 0
.lpPrintTemplateName& = 0
.lpPrintSetupTemplateName& = 0
EndWith
@ChoosePrinter(PRINTDLG#)
PrintText$ ="Beispiel - Imprimer Array"
whileloop 14
text$[&loop]="TestArray" + Str$(&loop)
Endwhile
var y%=140
~StartDoc(PRINTDLG#.hDC&, DOCINFO#)
~StartPage(PRINTDLG#.hDC&)
'UseFont "Times New Roman",26,0,1,0,1
~TextOut(PRINTDLG#.hDC&, 150, 150, @Addr(PrintText$),@Len(PrintText$))'den Text druckt il
'UseFont "Times New Roman",22,0,0,1,0,0
whileloop 14
~TextOut(PRINTDLG#.hDC&, 80, y%, text$[&loop],@Len(text$[&loop]))'cela Array druckt il pas ;(
y%=Y%+50
Endwhile
~EndPage(PRINTDLG#.hDC&)
~EndDoc(PRINTDLG#.hDC&)
Dispose DOCINFO#
Dispose PRINTDLG#
LG
Julian57 |
| | | ˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗ Webseite [...]  | 14.06.2011 ▲ |
| |
|  | « cette Beitrag wurde comme Solution gekennzeichnet. » | |  Thomas Freier |  Alten Beitrag gelöscht. trop den Escape Sequenzen cherche im Web. mais qui aider chez den heutigen Druckern wohl aussi pas plus, car und dir oui aussi so:
$H Windows.ph
Def @ChoosePrinter(1) !"COMDLG32.DLL", "PrintDlgA"
Déclarer DOCINFO#, text$[]
Struct DOCINFO = cbSize&,lpszDocName&,lpszOutput&,lpszDatatype&,fwType&
Faible DOCINFO#, DOCINFO
Déclarer PRINTDLG#
Struct PRINTDLG = lStructSize&,hWndOwner&,hDevMode&,hDevNames&,hDC&,Flags&,nFromPage%,nToPage%,nMinPage%,nMaxPage%,nCopies%,hInstance&,lCustData&,lpfnPrintHook&,lpfnSetupHook&,lpPrintTemplateName&,lpPrintSetupTemplateName&,hPrintTemplate&,hSetupTemplate&
Faible PRINTDLG#, PRINTDLG
Def &PD_RETURNDC $100
Déclarer PrintText$, DocName$
DocName$ = "Array Ausdrucken"
With DOCINFO#
.cbSize& = @SizeOf(DOCINFO#)
.lpszDocName& = @Addr(DocName$)
.lpszOutput& = 0
EndWith
With PRINTDLG#
.lStructSize& = @SizeOf(PRINTDLG#)
.hWndOwner& = %hWnd
.hDevMode& = 0
.Flags& = &PD_RETURNDC
.hDevNames& = 0
.hInstance& = %hInstance
.lpfnPrintHook& = 0
.lpfnSetupHook& = 0
.lpPrintTemplateName& = 0
.lpPrintSetupTemplateName& = 0
EndWith
@ChoosePrinter(PRINTDLG#)
PrintText$ ="Beispiel - Imprimer Array"
whileloop 14
text$[&loop]="TestArray" + Str$(&loop)
Endwhile
~StartDoc(PRINTDLG#.hDC&, DOCINFO#)
~StartPage(PRINTDLG#.hDC&)
'siehe Aider "Drucken"
Début de peinture PRINTDLG#.hDC&
UseFont "Times New Roman",(24.0*3.7),0,1,0,1
EndPaint PRINTDLG#.hDC&
~TextOut(PRINTDLG#.hDC&, (15*3.7), (15*3.7), @Addr(PrintText$),@Len(PrintText$))
Début de peinture PRINTDLG#.hDC&
UseFont Arial,(16.0*3.7),0,0,0,0,0
EndPaint DC&
declare text$
var y%=50
whileloop 14
Text$=text$[&loop]
~TextOut(PRINTDLG#.hDC&, (15*3.7), (Y%*3.7), @Addr(Text$),@Len(Text$))
y%=Y%+18
Endwhile
~EndPage(PRINTDLG#.hDC&)
~EndDoc(PRINTDLG#.hDC&)
Dispose DOCINFO#
Dispose PRINTDLG#
Über den facteur Bildschirmpunkt zum Druckerpunkt wirst du ici aussi et avec ca trouver. |
| | | | |  |
| |  Thomas Freier | alors drucken ginge déjà, si du dedans qui Boucle den gleichen Befehl absetzt.
$H Windows.ph
Def @ChoosePrinter(1) !"COMDLG32.DLL", "PrintDlgA"
Déclarer DOCINFO#, text$[]
Struct DOCINFO = cbSize&,lpszDocName&,lpszOutput&,lpszDatatype&,fwType&
Faible DOCINFO#, DOCINFO
Déclarer PRINTDLG#
Struct PRINTDLG = lStructSize&,hWndOwner&,hDevMode&,hDevNames&,hDC&,Flags&,nFromPage%,nToPage%,nMinPage%,nMaxPage%,nCopies%,hInstance&,lCustData&,lpfnPrintHook&,lpfnSetupHook&,lpPrintTemplateName&,lpPrintSetupTemplateName&,hPrintTemplate&,hSetupTemplate&
Faible PRINTDLG#, PRINTDLG
Def &PD_RETURNDC $100
Déclarer PrintText$, DocName$
DocName$ = "Array Ausdrucken"
With DOCINFO#
.cbSize& = @SizeOf(DOCINFO#)
.lpszDocName& = @Addr(DocName$)
.lpszOutput& = 0
EndWith
With PRINTDLG#
.lStructSize& = @SizeOf(PRINTDLG#)
.hWndOwner& = %hWnd
.hDevMode& = 0
.Flags& = &PD_RETURNDC
.hDevNames& = 0
.hInstance& = %hInstance
.lpfnPrintHook& = 0
.lpfnSetupHook& = 0
.lpPrintTemplateName& = 0
.lpPrintSetupTemplateName& = 0
EndWith
@ChoosePrinter(PRINTDLG#)
PrintText$ ="Beispiel - Imprimer Array"
whileloop 14
text$[&loop]="TestArray" + Str$(&loop)
Endwhile
var y%=140
~StartDoc(PRINTDLG#.hDC&, DOCINFO#)
~StartPage(PRINTDLG#.hDC&)
'UseFont "Times New Roman",26,0,1,0,1
~TextOut(PRINTDLG#.hDC&, 150, 150, @Addr(PrintText$),@Len(PrintText$))'den Text druckt il
'UseFont "Times New Roman",22,0,0,1,0,0
declare text$
y%=300
whileloop 14
Text$=text$[&loop]
~TextOut(PRINTDLG#.hDC&, 150, y%, @Addr(Text$),@Len(Text$))
y%=Y%+150
Endwhile
~EndPage(PRINTDLG#.hDC&)
~EndDoc(PRINTDLG#.hDC&)
Dispose DOCINFO#
Dispose PRINTDLG#
là du pas entre Startprint et Endprint druckst, peux qui Font probablement seulement par Senden qui entsprechenden Escape-Sequenzen umgestellt volonté. |
| | | | |
| |  Julian Schmidt | comment meinst du cela avec qui Escape-Sequenz? un Beispiel? |
| | | ˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗ Webseite [...]  | 14.06.2011 ▲ |
| |
| |  Thomas Freier |  Alten Beitrag gelöscht. trop den Escape Sequenzen cherche im Web. mais qui aider chez den heutigen Druckern wohl aussi pas plus, car und dir oui aussi so:
$H Windows.ph
Def @ChoosePrinter(1) !"COMDLG32.DLL", "PrintDlgA"
Déclarer DOCINFO#, text$[]
Struct DOCINFO = cbSize&,lpszDocName&,lpszOutput&,lpszDatatype&,fwType&
Faible DOCINFO#, DOCINFO
Déclarer PRINTDLG#
Struct PRINTDLG = lStructSize&,hWndOwner&,hDevMode&,hDevNames&,hDC&,Flags&,nFromPage%,nToPage%,nMinPage%,nMaxPage%,nCopies%,hInstance&,lCustData&,lpfnPrintHook&,lpfnSetupHook&,lpPrintTemplateName&,lpPrintSetupTemplateName&,hPrintTemplate&,hSetupTemplate&
Faible PRINTDLG#, PRINTDLG
Def &PD_RETURNDC $100
Déclarer PrintText$, DocName$
DocName$ = "Array Ausdrucken"
With DOCINFO#
.cbSize& = @SizeOf(DOCINFO#)
.lpszDocName& = @Addr(DocName$)
.lpszOutput& = 0
EndWith
With PRINTDLG#
.lStructSize& = @SizeOf(PRINTDLG#)
.hWndOwner& = %hWnd
.hDevMode& = 0
.Flags& = &PD_RETURNDC
.hDevNames& = 0
.hInstance& = %hInstance
.lpfnPrintHook& = 0
.lpfnSetupHook& = 0
.lpPrintTemplateName& = 0
.lpPrintSetupTemplateName& = 0
EndWith
@ChoosePrinter(PRINTDLG#)
PrintText$ ="Beispiel - Imprimer Array"
whileloop 14
text$[&loop]="TestArray" + Str$(&loop)
Endwhile
~StartDoc(PRINTDLG#.hDC&, DOCINFO#)
~StartPage(PRINTDLG#.hDC&)
'siehe Aider "Drucken"
Début de peinture PRINTDLG#.hDC&
UseFont "Times New Roman",(24.0*3.7),0,1,0,1
EndPaint PRINTDLG#.hDC&
~TextOut(PRINTDLG#.hDC&, (15*3.7), (15*3.7), @Addr(PrintText$),@Len(PrintText$))
Début de peinture PRINTDLG#.hDC&
UseFont Arial,(16.0*3.7),0,0,0,0,0
EndPaint DC&
declare text$
var y%=50
whileloop 14
Text$=text$[&loop]
~TextOut(PRINTDLG#.hDC&, (15*3.7), (Y%*3.7), @Addr(Text$),@Len(Text$))
y%=Y%+18
Endwhile
~EndPage(PRINTDLG#.hDC&)
~EndDoc(PRINTDLG#.hDC&)
Dispose DOCINFO#
Dispose PRINTDLG#
Über den facteur Bildschirmpunkt zum Druckerpunkt wirst du ici aussi et avec ca trouver. |
| | | | |
| |  Julian Schmidt | merci pour deine Aider, et besonders qui guten Beispiele  |
| | | ˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗ Webseite [...]  | 15.06.2011 ▲ |
| |
|
répondreOptions du sujet | 7.297 Views |
Themeninformationencet Thema hat 2 participant: |