Prev: EjectNtmsMedia
Next: MSCOMM and Binary
From: J French on 7 Aug 2006 09:47 On Mon, 07 Aug 2006 15:21:56 +0200, "Helge Haensel" <dj1wm(a)nurfuerspam.de> wrote: <snip> >Mike did a great job with his code and i have my problems with it >What is the replacement for MS VB5 statement 'Form2.Printform' in >Mikes code. I need to print different forms - of course with all its >controls. >Helge He will pop up - but the general idea is to force the Form to paint itself to the Printer rather than the Screen
From: Helge Haensel on 7 Aug 2006 10:24 Am 07.08.2006, 15:47 Uhr, schrieb J French <erewhon(a)nowhere.uk>: > On Mon, 07 Aug 2006 15:21:56 +0200, "Helge Haensel" > <dj1wm(a)nurfuerspam.de> wrote: > > <snip> > >> Mike did a great job with his code and i have my problems with it >> What is the replacement for MS VB5 statement 'Form2.Printform' in >> Mikes code. I need to print different forms - of course with all its >> controls. >> Helge > > He will pop up > > - but the general idea is to force the Form to paint itself to the > Printer rather than the Screen > Sorry i have a little problem in understanding what you are saying. Please let me point out what i want to do: I have a FormX about a size of a large postcard. The 'postcard' contains frames with several labels containing different textformats. Of this form i have to print about 300, of course with different contents. And the papercards need to be supplied to the printer manually. The Print-Button (command1) is on Form1. In principle 'FormX.PrintForm' does the job with the shortcomings mentioned with my first msg starting this thread. Helge
From: Helge Haensel on 7 Aug 2006 11:06 Am 07.08.2006, 15:47 Uhr, schrieb J French <erewhon(a)nowhere.uk>: > On Mon, 07 Aug 2006 15:21:56 +0200, "Helge Haensel" > <dj1wm(a)nurfuerspam.de> wrote: > > <snip> > >> Mike did a great job with his code and i have my problems with it >> What is the replacement for MS VB5 statement 'Form2.Printform' in >> Mikes code. I need to print different forms - of course with all its >> controls. >> Helge > > He will pop up > > - but the general idea is to force the Form to paint itself to the > Printer rather than the Screen > I thought about it. Well, i understand what you are saying. But that then doesnt solve my problems from 1. msg. I can live with Mike's code. I used such kind of programming in 'former' times when xy-plotters were controlled by fortran or algol. A GUI wasnt invented that time. Also great fun, hi. But what about the fact that my PDF995-printer (for testing intermediate results) is not accepted? I have fax, hp970 and pdf995 installed as printers. Helge > >
From: Mike Williams on 7 Aug 2006 18:56 "Helge Haensel" <dj1wm(a)nurfuerspam.de> wrote in message news:op.tdw5k1b6sjedh2(a)hhh... > I can live with Mike's code. Well that's nice to know ;-) > But what about the fact that my PDF995-printer (for testing > intermediate results) is not accepted? I have fax, hp970 and > pdf995 installed as printers. Ah. Now that's *not* nice to know :-( To be honest I've been on holiday (vacation in Americanese!) for the last week so I've missed all the stuff in this thread so far. I've posted so much code using the VB printer object over the last couple of years and I've no idea at all which specific block of code you're referring to. Perhaps you can enlighten me? At the moment I've no idea how you are selcting the printer or how you are driving it. If at all possible it would be best if you posted a link to somewhere where I could download your current project files. I could then look at them and perhaps fix the problem for you. Otherwise, perhaps you can explain in precise detail exactly what it is you are doing, and how you are currently doing it? I've never used a PDF printer driver myself, so I've no idea what this PDF995 printer driver is that you are talking about. Perhaps you can post a link to somewhere I can download that specific driver, so that I can try it for myself? Otherwise, just post as much of your existing code as you can and I'll have a look at it. Mike
From: Mike Williams on 7 Aug 2006 20:57
"Helge Haensel" <dj1wm(a)nurfuerspam.de> wrote in message news:op.tdw5k1b6sjedh2(a)hhh... > But what about the fact that my PDF995-printer (for testing > intermediate results) is not accepted? Okay. Further to my recent response I've just downloaded the PDF995 printer driver (version 7.9s* with the free converter and the "nag page") and it works fine. I can print stuff to it okay, and the standard VB CommonDialog Control allows you to select the PDF driver with no problems at all (subject to the standard limitations of the Common Dialog control under WinXP which only allows you to select the printer but not to alter any of its settings). Those problems are very easy to overcome though, in the various different standard ways that they can be overcome for all other printers. I can print anything I want to it including text, graphics, Form dumps, all sorts of stuff, using either a single page or as many individual pages as I like. Everything works exactly as expected. Perhaps you should tell us exactly what code you are using, and what problems you are having. Mike |