Hello Ashwin or other ddk-freaks,

I refer to an older message in this newsgroup. I asked how to read out the
right copy count from the genprint dll. Ashwin answered to me that I've to
parse the data stream to get the copy count. Can you help me, I've no idea
how I can parse the data stream.

The next question is how to call an vb active-x dll from the genprint dll.
From an mfc application it's no problem but from genprint?

Thanks alot for any information

Greets

Marc Stoffel

RE: Please help me Ashwin! Genprint... by ashwinn

ashwinn
Tue Aug 05 13:09:16 CDT 2003

------=_NextPart_0001_359FA26A
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

I cannot explain exactly how you need to parse the data stream. But the
general concept is to detect page breaks (possible via printer commands) in
the data stream and count the total number of pages. Since you will know
how many pages are present in a single copy of the print job, you can then
determine the copy count.

As for your question regarding calling a VB activex component, that is not
my area of expertise. But my guess is that you are going to have problems
working around the fact that the print processor runs in the spooler's
process context.

- Ashwin

This posting is provided "AS IS" with no warranties, and confers no rights.

------=_NextPart_0001_359FA26A
Content-Type: text/x-rtf
Content-Transfer-Encoding: 7bit

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\f0\fs20 I cannot explain exactly how you need to parse the data stream. But the general concept is to detect page breaks (possible via printer commands) in the data stream and count the total number of pages. Since you will know how many pages are present in a single copy of the print job, you can then determine the copy count.
\par
\par As for your question regarding calling a VB activex component, that is not my area of expertise. But my guess is that you are going to have problems working around the fact that the print processor runs in the spooler's process context.
\par
\par - Ashwin
\par
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par
\par
\par }
------=_NextPart_0001_359FA26A--


Re: Please help me Ashwin! Genprint... by Marc

Marc
Wed Aug 06 01:06:20 CDT 2003

But how can you communicate with other applications, when you cannot use ole
automation? And how can use get the copy count when I know homany pages are
in one copy?

Thanks

Greets Marc



Re: Please help me Ashwin! Genprint... by ashwinn

ashwinn
Wed Aug 06 13:24:11 CDT 2003

------=_NextPart_0001_69FC0906
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

I don't know the answer to your question about using OLE automation. I am
not sure if it is possible or not. You will have to ask an OLE expert. As
for your second question, if you know how many pages are in a single copy
and if you count the total number of pages being printed in the print
processor, you can then calculate the copy count.

- Ashwin

This posting is provided "AS IS" with no warranties, and confers no rights.

------=_NextPart_0001_69FC0906
Content-Type: text/x-rtf
Content-Transfer-Encoding: 7bit

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\f0\fs20 I don't know the answer to your question about using OLE automation. I am not sure if it is possible or not. You will have to ask an OLE expert. As for your second question, if you know how many pages are in a single copy and if you count the total number of pages being printed in the print processor, you can then calculate the copy count.
\par
\par - Ashwin
\par
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par
\par
\par }
------=_NextPart_0001_69FC0906--