BIPRNDRVLib MemoryImage Capture returns 1 zero byte

Document Imaging SDK,
Image SDK,
TIFF SDK,
Annotation SDK,
Cover Page Generator

Moderator: Technical Support Team

BIPRNDRVLib MemoryImage Capture returns 1 zero byte

Postby mbierman » Fri Jul 22, 2011 11:04 am

I am having an issue with the memoryimage event of BIPRNDRVLib in c# having the Data argument returning as byte[]{0} and the Size = 1

oddly if I right click on a file and use the "print" verb, the capture works and Data contains the file, but if I open the application and print to the driver I get the byte[]{0}


to recreate this problem (it is in multiple apps) I modified the CSharpMSGCapture Solution by adding:

Code: Select all
void BiPrnDrv_MemoryImage(ref object Data, int Size)
        {
            ListBox.Items.Add("MemoryImage message was received.");
            ListBox.Items.Add("The size is: " + Size);
            ListBox.SelectedIndex = ListBox.Items.Count - 1;
        }


and changing this method:

Code: Select all
public Form1()
      {
         //
         // Required for Windows Form Designer support
         //
         InitializeComponent();

            BiPrnDrv = new BIPRNDRVLib.BiPrnDrv();
            // Add event handlers
            BiPrnDrv.StarDoc += new BIPRNDRVLib._DBiPrnDrvEvents_StarDocEventHandler(BiPrnDrv_StarDoc);
            BiPrnDrv.StartPage += new BIPRNDRVLib._DBiPrnDrvEvents_StartPageEventHandler(BiPrnDrv_StartPage);
            BiPrnDrv.EndPage += new BIPRNDRVLib._DBiPrnDrvEvents_EndPageEventHandler(BiPrnDrv_EndPage);
            BiPrnDrv.EndDoc += new BIPRNDRVLib._DBiPrnDrvEvents_EndDocEventHandler(BiPrnDrv_EndDoc);
            BiPrnDrv.MemoryImage += new BIPRNDRVLib._DBiPrnDrvEvents_MemoryImageEventHandler(BiPrnDrv_MemoryImage);

            //szIniFile = Application.StartupPath + "\\SampleSettings.ini";
      }
mbierman
 
Posts: 2
Joined: Fri Jul 22, 2011 10:53 am

Re: BIPRNDRVLib MemoryImage Capture returns 1 zero byte

Postby mbierman » Fri Jul 22, 2011 11:18 am

I just discovered it was because I had the "disable output file" checked as well as "Generate output in memory"
mbierman
 
Posts: 2
Joined: Fri Jul 22, 2011 10:53 am


Return to Imaging Toolkits



Who is online

Users browsing this forum: No registered users and 1 guest