English
Forum

all kinds of ask round ums Print with XProfan

 
- Page 1 -



Julian
Schmidt
Hello Community,
i'd gladly some ask around Print with XProfan clarify.

to that Topic: i'm just thereby my schedule-Tool (Perhaps. remind itself some on this) To update. now try I straight The Druckfunktion on Vorderman To bring.
I put me the Print so to.
If one on Print clicking comes one Druckerauswahldialog, subsequently can Settings meet and print. If in the Druckerauswahldialog Landscape clicked watts should something other printed go as in the Hochformat.
in the Landscape becomes the schedule once over The entire length the Blattes printed.
in the Hochformat becomes the schedule multiple among themselves on The entire wide the Blattes printed, so too so the entire leaf ausgefüllt is.

now should one to that a detect whether athwart-, or Hochformat select watts.
and to that second should The Size the Blattes determined go, so one whom schedule Center can.

target this Beitrags is it first integrally simple in the high-, Landscape a line, and a Text Centered, in the jeweiligen stature-Align(edge of ~50px) to print.
CompileMarkSeparation
StartPrint "*Testausdruck"

if %Printing

    Line 50,50 - 200,50
    DrawText 50, 60, 200, 80, "TestText", 1
    EndPrint

E
a>

LG

Julian57
 
XProfan X2
Win7 Home Premium, SP1, AMD Athlon(tm) II Neo K125 Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
08/19/11  
 



« this Posting watts as Solution marked. »


Thomas
Freier
there's converting angesagt. You get z.B. Blattbreite in mm. then are the ~H&*3.425 Bildpx .
CompileMarkSeparation
 $H Windows.ph
Declare H&,V&
cls
var  rand%=75
var pxmm!=3.425
var pymm!=3.35
StartPrint "*Test"

if %Printing

    H& = ~GetDeviceCaps(&PDC,~HORZSIZE)
    V& = ~GetDeviceCaps(&PDC,~VERTSIZE)
    UsePen 0,1,@RGB(0,0,31)

    If H& > V&'Querformat

        Line rand%,100 - ((H&*pxmm!)-rand%),100

    Else'Hochformat

        Line rand%,100 - ((H&*pxmm!)-rand%),100

    Endif

    EndPrint

Endif


Verwendest You Druckerpx (APX%) must You your Bildschirmpx (edge%) converting.
 
Gruß Thomas
Windows XP SP2, XProfan X2
08/20/11  
 



helps you [...]  ?
 
08/19/11  
 




Julian
Schmidt
helps I do not really moreover!
i think the best Ansatz would first To detect whether athwart- or Hochformat tuned watts. Irgendeine idea?
 
XProfan X2
Win7 Home Premium, SP1, AMD Athlon(tm) II Neo K125 Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
08/19/11  
 



Hm but Codes for lying here still rum.

like The Search not?

Simplest Variante: [...] 

but gib time into Suchfeld "Drucke" one -

and look then there in the Rubrik "Quelltexte"

there Gibts yet genauere Examples.
 
08/19/11  
 



Z.B. here simply How always super of Andreas Miethe: [...]  -

can so even look whether the printer manly or feminine is -

if given!
 
08/19/11  
 




Julian
Schmidt
hmmm....with the the detect the Formates functions so far super! now komm I to that next trouble. How do I get because The line exakt of *beginning the Blattes*+*Druckrand* To *end the Blattes*-*Druckrand*.

currently siehts so from(see Download)! just as in Hochformat!
Download
CompileMarkSeparation
Def GetDeviceCaps(2) ! "GDI32","GetDeviceCaps"
Declare H&,V&, rand_px&, APX%, APY%
rand_px&=75
cls
StartPrint "*Test"

if %Printing

    H& = GetDeviceCaps(&PDC,4)
    V& = GetDeviceCaps(&PDC,6)
    APX%= GetDeviceCaps(&PDC,8)'Ausgabebreite in Pixel
    APY%= GetDeviceCaps(&PDC,10)'AusgabeHoehe in Pixel

    If H& > V&'Querformat

        Line rand_px&,rand_px& - APX%-rand_px&,rand_px&

    Else'Hochformat

        Line rand_px&,rand_px& - APY%-rand_px&,rand_px&

    Endif

    EndPrint

Endif


2 kB
Hochgeladen:08/19/11
Downloadcounter118
Download
 
XProfan X2
Win7 Home Premium, SP1, AMD Athlon(tm) II Neo K125 Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
08/19/11  
 



look time: [...] 

there back HORZRES: Width, in pixels, of the screen; or for printers, the width, in pixels, of the printable area of the page.

functions the because not?
 
08/19/11  
 




Julian
Schmidt
unfortunately not
CompileMarkSeparation
 $H Windows.ph
Declare H&,V&, rand_px&, APX%, APY%
rand_px&=75
cls
StartPrint "*Test"

if %Printing

    H& = ~GetDeviceCaps(&PDC,~HORZSIZE)
    V& = ~GetDeviceCaps(&PDC,~VERTSIZE)
    APX%= ~GetDeviceCaps(&PDC,~HORZRES)
    APY%= ~GetDeviceCaps(&PDC,~VERTRES)

    If H& > V&'Querformat

        Line rand_px&,rand_px& - (APY%-rand_px&),rand_px&

    Else'Hochformat

        Line rand_px&,rand_px& - (APX%-rand_px&),rand_px&

    Endif

    EndPrint

Endif

 
XProfan X2
Win7 Home Premium, SP1, AMD Athlon(tm) II Neo K125 Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
08/19/11  
 




Rolf
Koch
and what me here wundert: none goes on your geilen saying one "ob the printer manly or weiblich" is. I Have me again gekringelt to laugh. thanks if, for this saying !!!!
 
08/20/11  
 




Jörg
Sellmeyer
what is because "Leider nicht"? get You no values or what? by me come namely values into variables. and of course quite very The, The I with of/ one Din A4-Page erwaten would.
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
08/20/11  
 




Thomas
Freier
is already witty, as data determined will be.
Jörg erwatet tappt im dunkeln [...] 
and Julian fishing in the Trüben [...] 
 
Gruß Thomas
Windows XP SP2, XProfan X2
08/20/11  
 




Julian
Schmidt
The question is Yes always whether The right values determined go, whether the the worth is whom I Search. How becomes it whom with you ausgedruckt?
CompileMarkSeparation
 $H Windows.ph
Declare H&,V&, rand_px&, APX%, APY%
rand_px&=75
cls
StartPrint "*Test"

if %Printing

    H& = ~GetDeviceCaps(&PDC,~HORZSIZE)
    V& = ~GetDeviceCaps(&PDC,~VERTSIZE)
    APX%= ~GetDeviceCaps(&PDC,~HORZRES)
    APY%= ~GetDeviceCaps(&PDC,~VERTRES)
    'APX% und APY% evtl. vertauschen

    If H& > V&'Querformat

        Line rand_px&,rand_px& - (APY%-rand_px&),rand_px&

    Else'Hochformat

        Line rand_px&,rand_px& - (APX%-rand_px&),rand_px&

    Endif

    EndPrint

Endif

 
XProfan X2
Win7 Home Premium, SP1, AMD Athlon(tm) II Neo K125 Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
08/20/11  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

14.436 Views

Untitledvor 0 min.
Member 294243004/08/24
Uwe Lang06/19/23
Manfred Barei05/16/21
rquindt05/17/20
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie