About your Spool File Page Counter SDK

i am trying out your Spool File Page Counter SDK
c# sample to print a windows spool file (eg 00009.spl)
why is it I am not bale to get the correct copies count.
============================================
Can you please email to us your sample 00009.spl file and your Order ID (if you have)?
after we checked your sample 00009.spl file, we will figure out a solution to you shortly.

VeryPDF
==================================
thanks for your prompt reply. will send you the spl file later.

by the way, do you have the sample code in VS2008.
===================================
Hi,

Please download trial package from following URL, this package does contain C#, VB.NET, etc. examples, you can compile and run these examples from VS2008 easily,

http://www.verydoc.com/ps-and-pcl-info-sdk.zip

VeryPDF
==================================
Hi,

We have double checked your 00009.SPL file, this SPL file is contain one copy only, it hasn't contain more copies, our Spool File Page Counter SDK will report following information for it, the following information is correct,

=============================
Page   1 is [Color]
=============================
Statistics: bwPageCount=0, colorPageCount=1
=======================================
File = 'D:\temp4\00009.SPL'
Return Value = TRUE
bIsRenderToPDF = 1
bwPageCount = 0
colorPageCount = 1
copyCount = 1
PageWidht = 2100
PageHeight = 2970
PaperSizeName = 'A4'

VeryPDF
====================================
i downloaded and run and am still told that vs2008 cannot be used. i need a newer version.
have you check my 00009.spl file?
====================================
Hi,

>>i downloaded and run and am still told that vs2008 cannot be used. i need a newer version.

This is the vs2010 project, maybe this is reason that you can't open it in vs2008.

However, you can create a blank vs2008 project, set the compile type to x86, you can insert following code into your vs2008 project, then you can compile and run your vs2008 project properly,

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        [DllImport("ReadInfo.dll", EntryPoint = "ReadInfoFromPCLFile")]
        public static extern Int32 ReadInfoFromPCLFile(
            string fileName,
            Int32 bIsRenderToPDF,
            ref uint bwPageCount,
            ref uint colorPageCount,
            ref uint copyCount,
            ref double pagewidth,
            ref double pageheight,
            StringBuilder paperSizeName);

        [DllImport("ReadInfo.dll", EntryPoint = "ReadInfoSetCode")]
        public static extern void ReadInfoSetCode(string strCode);

        static void Main(string[] args)
        {
            if (args.Length != 1)
            {
                Console.WriteLine("test.exe C:\\test.pcl");
                Console.WriteLine("test.exe C:\\test.ps");
                return;
            }
            Console.Write("args length is ");
            Console.WriteLine(args.Length); // Write array length
            for (int i = 0; i < args.Length; i++) // Loop through array
            {
                string argument = args[i];
                Console.Write("args index ");
                Console.Write(i); // Write index
                Console.Write(" is [");
                Console.Write(argument); // Write string
                Console.WriteLine("]");
            }
            string fileName = args[0];
            int bIsRenderToPDF = 1;
            uint bwPageCount = 0;
            uint colorPageCount = 0;
            uint copyCount = 0;
            double nPageWidth = 0;
            double nPageHeight = 0;
            StringBuilder strPaperSizeName = new StringBuilder(300);

            ReadInfoSetCode("XXXXXXXXXXXXXXXXXX");
            ReadInfoFromPCLFile(fileName, bIsRenderToPDF, ref bwPageCount, ref colorPageCount,
                    ref copyCount, ref nPageWidth, ref nPageHeight, strPaperSizeName);

            Console.WriteLine(String.Format("File: {0}", fileName));
            Console.WriteLine(String.Format("Render To PDF: {0}", bIsRenderToPDF));
            Console.WriteLine(String.Format("BW Pages: {0}", bwPageCount));
            Console.WriteLine(String.Format("Color Pages: {0}", colorPageCount));
            Console.WriteLine(String.Format("Width: {0}", nPageWidth));
            Console.WriteLine(String.Format("Height: {0}", nPageHeight));
            Console.WriteLine(String.Format("Paper name: {0}", strPaperSizeName));
        }
    }
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

>>have you check my 00009.spl file?

We have double checked your 00009.SPL file, this SPL file is contain one copy only, it hasn't contain more copies, our Spool File Page Counter SDK will report following information for it, the following information is correct,

=============================
Page   1 is [Color]
=============================
Statistics: bwPageCount=0, colorPageCount=1
=======================================
File = 'D:\temp4\00009.SPL'
Return Value = TRUE
bIsRenderToPDF = 1
bwPageCount = 0
colorPageCount = 1
copyCount = 1
PageWidht = 2100
PageHeight = 2970
PaperSizeName = 'A4'

VeryPDF
========================================================

I have printed 3 copies of elexol.txt
but I still get one copy from 00010.spl.

is there some settings that I missed.
=========================================================
Hi,

The latest version of Spool File Page Counter SDK can print following information for your 00010.SPL file, as you see, “copyCount = 3” in your 00010.SPL file,

=============================
Page   1 is [   BW]
Page   2 is [   BW]
Page   3 is [   BW]
Page   4 is [   BW]
Page   5 is [   BW]
Page   6 is [   BW]
=============================
Statistics: bwPageCount=6, colorPageCount=0
=======================================
File = 'D:\temp4\00010.SPL'
Return Value = TRUE
bIsRenderToPDF = 1
bwPageCount = 6
colorPageCount = 0
copyCount = 3
PageWidht = 2100
PageHeight = 2970
PaperSizeName = 'A4'
==========================================================
==================================================================
It seems you are using the old version of Spool File Page CounterSDK, please download the latest version from following URL to tryagain,

http://www.verydoc.com/download/ps-and-pcl-info-sdk.zip

after you downloaded it, you can run following command line toretrieve information from your SPL file,
C:\>E:\ps-and-pcl-info-sdk\bin\vc_test.exe D:\temp4\00010.SPL
=============================
Page   1 is [   BW]
Page   2 is [   BW]
Page   3 is [   BW]
Page   4 is [   BW]
Page   5 is [   BW]
Page   6 is [   BW]
=============================
Statistics: bwPageCount=6, colorPageCount=0
=======================================
File = 'D:\temp4\00010.SPL'
Return Value = TRUE
bIsRenderToPDF = 1
bwPageCount = 6
colorPageCount = 0
copyCount = 3
PageWidht = 2100
PageHeight = 2970
PaperSizeName = 'A4'

VeryPDF

================================================
yes. you are right. i was using the old version.

now, everything is fine.
thanks

regards
================================================
how do I read the printer name, username and other info from the spl file.
================================================
>>how do I read the printer name, username and other info from the spl file.

PCL format doesn't contain printer name, username and other info, these information are store in .SHD file of print job, but not included in PCL file, so we can't retrieve these information from PCL file.

VeryPDF
=================================================
Hi,

I am trying to display the copies and pages in a textbox under windows form application. But I always get a "ReadInfo.dll not found error". where should I copy ReadInfo.dll to.

and do I need to regster it.

regards
=================================================
Hi,

Please copy your EXE and following DLL files into same folder, then you can run your EXE from this folder properly,

cimage.dll
cximagecrt.dll
Interop.FileInfoCOM.dll
pcl.dll
pcltool.dll
pdftoolsdk.dll
ReadInfo.dll

VeryPDF

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

3 Replies to “About your Spool File Page Counter SDK

  1. I have a similar issue when printing from Word. The copiescount is always 1. I downloaded the latest SDK and I’m using VS 2010 on Win7 32bits
    Please advise

    VA:F [1.9.20_1166]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.20_1166]
    Rating: 0 (from 0 votes)
  2. Can you please send to us your sample SPL file to us for checking? we will come back to you after we checked your sample SPL file.

    VN:F [1.9.20_1166]
    Rating: 0.0/5 (0 votes cast)
    VN:F [1.9.20_1166]
    Rating: 0 (from 0 votes)
    1. How can I send it? I can’t find any upload button

      VA:F [1.9.20_1166]
      Rating: 0.0/5 (0 votes cast)
      VA:F [1.9.20_1166]
      Rating: 0 (from 0 votes)

Leave a Reply to amerilia Cancel reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!