Platform : Windows 9X, XP, Vista, Window 7
For Windows Developers who need to PDF image viewer , secure and add annotation with PDF in c++ , c#, vb.net , vb, delphi, vfp, access.
Step 1: Download Image Viewer CP Gold ActiveX setup disk and installed it.
Step 2: Add a buttons into the form.
Step 3: Add following code in buttons click event.
private void button1_Click(object sender, EventArgs e)
{
AxImageViewer1.FileName="c:\yourpdf.pdf";
}
Step 4: Add a buttons name BtnReadBarcode into the form.
Step 5: Add following code in buttons click event.
private void btnReadBarcode_Click(object sender, EventArgs e)
{
short ibarcodeCount = 0;
string str1;
string strtmp;
ibarcodeCount =axImageViewer1.BarCodeReadFullPage();
if (ibarcodeCount < 1)
{
MessageBox.Show("No barcode found");
return;
}
str1 = "Total " ibarcodeCount.ToString() " BarCode detected" "\r\n";
for (short i = 0; i < ibarcodeCount ; i )
{
strtmp = axImageViewer1.BarCodeGetType(i) " score:" axImageViewer1.BarCodeGetScore(i).ToString() " value:" axImageViewer1.BarCodeGetValue(i).ToString();
str1 = str1 "\r\n" strtmp;
}
MessageBox.Show(str1);
}