Refer to TIFF C# DLL sample, we can using the DllImport to GetNumberOfImagesInTiffFile (BiTiff.dll), LoadTiffIntoDIB (BiTiff.dll), RotateDIB90 (BiDib.dll) and so on. However, there is not sample of printing like BiPrintSetup, PrepareToPrint, PrintDIBPage and so on.
I try the following thing below but get the error - Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
[DllImport("BiPrint.dll")]
public static extern int BiPrintSetup(string PrinterName, bool ShowDialog);
[DllImport("BiPrint.dll")]
public static extern short PrepareToPrint(int hwnd, string ImageName, short maxPage, short numCopies, bool DisplayNameAttribute, bool CenterVerticalImage, bool CenterHorizontalImage, bool ScalePage, bool ConvertCtoB, bool StretchPage, bool AllPage, bool UseDPI, bool NotDispCancel);
BiPrintSetup(printDialog.PrinterSettings.PrinterName, false);
PrepareToPrint(hwnd, _filename, maxPage, 1, false, true, true, true, false, false, false, false, false);
Do you have sample in C#.NET or Vb.NET like TIFF C++ Sample.exe that just using BIDIB.dll,BiDisp.dll, BiPrint.dll, BiTiff.dll and not using any ocx, AxInterop.BIPRINTLib.dll, Interop.BIPRINTLib.dll. We are required to implement these thing without required register ocx files.
