PrinterDialog
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Kanati.
Well... That's about the response I expected. And exactly the reason why I'll go back to PowerBasic for my DLL creation needs. It took about an hour to get 4 responses to the question of printing using API only in their forums. :/
Oh... and all of them were answers to the question. Quite helpful.
Well... That's about the response I expected. And exactly the reason why I'll go back to PowerBasic for my DLL creation needs. It took about an hour to get 4 responses to the question of printing using API only in their forums. :/
Oh... and all of them were answers to the question. Quite helpful.
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by PB.
Kanati wrote:
> Well... That's about the response I expected.
Just because you didn't happen to get an answer immediately doesn't
mean we're ignoring you. Some of us have lives, and others may not
know the answer.
> And exactly the reason why I'll go back to PowerBasic for my DLL
> creation needs. It took about an hour to get 4 responses to the
> question of printing using API only in their forums. :/ Oh...
> and all of them were answers to the question. Quite helpful.
So we're not helpful here because we didn't respond to your question?
Well, I had an answer prepared for you but since you got it elsewhere,
I'll just let it slide.
Kanati wrote:
> Well... That's about the response I expected.
Just because you didn't happen to get an answer immediately doesn't
mean we're ignoring you. Some of us have lives, and others may not
know the answer.
> And exactly the reason why I'll go back to PowerBasic for my DLL
> creation needs. It took about an hour to get 4 responses to the
> question of printing using API only in their forums. :/ Oh...
> and all of them were answers to the question. Quite helpful.
So we're not helpful here because we didn't respond to your question?
Well, I had an answer prepared for you but since you got it elsewhere,
I'll just let it slide.
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by PB.
> I saw two or three people had asked the same question with the same
> response... none. So I doubt the answer was positive anyway. :/
Well it just so happens that I spent some time working out the answer
for you, and hence why I didn't reply immediately. But after your
ungrateful comments, I don't see why I or anyone else should bother.
Remember: You catch more flies with honey than vinegar.
> I saw two or three people had asked the same question with the same
> response... none. So I doubt the answer was positive anyway. :/
Well it just so happens that I spent some time working out the answer
for you, and hence why I didn't reply immediately. But after your
ungrateful comments, I don't see why I or anyone else should bother.
Remember: You catch more flies with honey than vinegar.
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by fred.
It's an open forums and nobody is paid to answer to any questions. Actually, many people spend most of their valuable time to help other people and that's very cool. The problem is nobody can know all the solutions, and if they can't answer, then it's useless to post 'Sorry, I can't help you'.. Feel free to use PowerBasic of course...
Fred - AlphaSND
It's an open forums and nobody is paid to answer to any questions. Actually, many people spend most of their valuable time to help other people and that's very cool. The problem is nobody can know all the solutions, and if they can't answer, then it's useless to post 'Sorry, I can't help you'.. Feel free to use PowerBasic of course...
Fred - AlphaSND
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by blueb.
Kanati,
Your remarks on ANY forum would get the same results!:)
I also use PowerBasic and have been using PureBasic more and more lately. The reason why... Doing things "Visually" is easier and Fred's style suits me.
Besides doing things better visually... PureBasic is "way easier" to use in most circumstances... printing included.
Printing in PowerBasic is impractical without 3rd party software (Don Dickinson's DDoc program).
Since you asked so politely... Here's an example.
It's from the German forum. (I copied it because it also shows how to print in landscape mode)
Best Regards,
--blueb
See... We do want to help.
Kanati,
Your remarks on ANY forum would get the same results!:)
I also use PowerBasic and have been using PureBasic more and more lately. The reason why... Doing things "Visually" is easier and Fred's style suits me.

Besides doing things better visually... PureBasic is "way easier" to use in most circumstances... printing included.
Printing in PowerBasic is impractical without 3rd party software (Don Dickinson's DDoc program).
Since you asked so politely... Here's an example.

It's from the German forum. (I copied it because it also shows how to print in landscape mode)
Code: Select all
;Print sideways (Landscape mode)
; from the German forum
;Standardrucker-Namen ermitteln
STDPrinterName$ = Space(260)
GetPrivateProfileString_("WINDOWS","DEVICE","", @STDPrintername$, 260, "Win.Ini")
STDPrintername$ = StringField(STDPrintername$, 1,",")
PrinterHandle.l = 0
OpenPrinter_([url]mailto:StdPrintername$,@PrinterHandle.l,0[/url])
;MessageRequester("",Str(PrinterHandle),0)
Dim DevIn.DEVMODE(0)
Dim DevOut.DEVMODE(0)
DocumentProperties_(0,Printerhandle,StdPrintername$,DevIn(0),DevOut(0),#DM_OUT_BUFFER|#DM_IN_BUFFER)
ClosePrinter_(PrinterHandle)
If DevIn(0)\dmOrientation = 1
MessageRequester("aktuelle Einstellung","Hochformat",0)
ElseIf DevIn(0)\dmOrientation = 2
MessageRequester("aktuelle Einstellung","Querformat",0)
EndIf
DevIn(0)\dmOrientation = 2;auf Querdruck setzen
PrinterDC.l = CreateDC_("WINSPOOL",StdPrintername$,0,DevIn(0))
DocInf.DOCINFO
DocInf\cbSize = SizeOf(DOCINFO)
DocInf\lpszDocName = @"Mein Dok"
DocInf\lpszOutput = #NULL
If StartDoc_(PrinterDC,@DocInf) > 0
If StartPage_(PrinterDC) > 0
;text.s = "Kanati is a nice guy and such a pleasure to talk to."
TextOut_(PrinterDC,60,70,"Kanati is a nice guy and such a pleasure to talk to.",26)
EndPage_(PrinterDC)
EndDoc_(PrinterDC)
EndIf
EndIf
--blueb
See... We do want to help.
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Kanati.
Well, thanks for the info. I will file it away for future reference.
But for this, I think I'll continue with PowerBasic. PureBasic has
matured quite a bit since I bought it waaaay back when, but it def-
initely needs a little more ripening for my tastes. Definitely more
bang for the buck than the highly overpriced PowerBasic, but it just
needs a little more tweaking what's already there instead of adding
more libraries.
Kanati
Well, thanks for the info. I will file it away for future reference.
But for this, I think I'll continue with PowerBasic. PureBasic has
matured quite a bit since I bought it waaaay back when, but it def-
initely needs a little more ripening for my tastes. Definitely more
bang for the buck than the highly overpriced PowerBasic, but it just
needs a little more tweaking what's already there instead of adding
more libraries.
Kanati
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Manolo.
Ok Kanati. See you the next year. ByBy.Originally posted by Kanati
Well, thanks for the info. I will file it away for future reference.
But for this, I think I'll continue with PowerBasic. PureBasic has
matured quite a bit since I bought it waaaay back when, but it def-
initely needs a little more ripening for my tastes. Definitely more
bang for the buck than the highly overpriced PowerBasic, but it just
needs a little more tweaking what's already there instead of adding
more libraries.
Kanati
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by PB.
> It's an open forums and nobody is paid to answer to any questions.
Yes, that's the real issue here. The PowerBasic forums are moderated
by actual PowerBasic staff members, and hence you'll get a quick reply
there. Here, it's just a community helping when we can. And if that
means a delayed response to a question, then so be it. No need for
people to get angry and say crap like "that's what I expected, I'll
use PowerBasic instead". Anyway, that's my rant for the week.
> It's an open forums and nobody is paid to answer to any questions.
Yes, that's the real issue here. The PowerBasic forums are moderated
by actual PowerBasic staff members, and hence you'll get a quick reply
there. Here, it's just a community helping when we can. And if that
means a delayed response to a question, then so be it. No need for
people to get angry and say crap like "that's what I expected, I'll
use PowerBasic instead". Anyway, that's my rant for the week.
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by OlliB.
I hope, you will improve the printer libary. In my oppinion there are to less capabilities to print with PB. And by the way, i don't like the WinApi and will not print with Api-Calls.Ok, your last remark seems fair and I will improve the printing library in a next version.
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Kanati.
To be fair to Fred... PowerBasic doesn't have ANY printer calls. You have to use the winapi entirely. Neither does it have a LOT of things that purebasic has. And that's a testement to Fred trying to make purebasic as powerful and easy to use as possible. It's just that what powerbasic DOES have is extremely well polished because they aren't trying to be all things to all people. It is what it is and that's it. I think purebasic has the potential to far outstrip powerbasic as an all around development tool. But it's getting time that Fred starts polishing what is here instead of tacking things on that are less than perfect and settling for that. He needs to perfect what's here and THEN add some more.
I don't regret buying purebasic for an instant. I was just a bit disappointed that when I decided to use it again, that what I wanted to use seemed like a half-hearted attempt.
(Now darkbasic... THAT I regret buying.
)
Kanati
To be fair to Fred... PowerBasic doesn't have ANY printer calls. You have to use the winapi entirely. Neither does it have a LOT of things that purebasic has. And that's a testement to Fred trying to make purebasic as powerful and easy to use as possible. It's just that what powerbasic DOES have is extremely well polished because they aren't trying to be all things to all people. It is what it is and that's it. I think purebasic has the potential to far outstrip powerbasic as an all around development tool. But it's getting time that Fred starts polishing what is here instead of tacking things on that are less than perfect and settling for that. He needs to perfect what's here and THEN add some more.
I don't regret buying purebasic for an instant. I was just a bit disappointed that when I decided to use it again, that what I wanted to use seemed like a half-hearted attempt.
(Now darkbasic... THAT I regret buying.

Kanati