Skip to main content

PC_PRINTER_LOAD_BMP with JPG files

  • May 31, 2017
  • 2 replies
  • 0 views

Hi,

We are using PC_PRINTER_LOAD_BMP Cobol routine to print BPM files, but according with the documentation this routine also support others file types like BMP, GIF, EXIF, JPG, PNG and TIFF.
So we try to print a JPG file but always we get the return code 18 (Failed to load bitmap)

Has anyone been able to print another type of file?

call "PC_PRINTER_LOAD_BMP" using printer-handle
                             by reference "mflogo.jpg" & x"0"
                             by reference bmp-id
                           returning  printer-retcode.

We are using Visual Cobol for Eclipse 2.3 Update 2 Hotfix 1

thanks,


#VisualCOBOL
#BPM
#jpg
#Printer

2 replies

Fano Razafinimanana

Hi,

We are using PC_PRINTER_LOAD_BMP Cobol routine to print BPM files, but according with the documentation this routine also support others file types like BMP, GIF, EXIF, JPG, PNG and TIFF.
So we try to print a JPG file but always we get the return code 18 (Failed to load bitmap)

Has anyone been able to print another type of file?

call "PC_PRINTER_LOAD_BMP" using printer-handle
                             by reference "mflogo.jpg" & x"0"
                             by reference bmp-id
                           returning  printer-retcode.

We are using Visual Cobol for Eclipse 2.3 Update 2 Hotfix 1

thanks,


#VisualCOBOL
#BPM
#jpg
#Printer
Hello Andrés,

I was able to recreate this problem with Visual COBOL 2.3 Update 2, so I suggest you report it to your local MF SupportLine.

Cheers,

–Ғɑɳօ

Hi,

We are using PC_PRINTER_LOAD_BMP Cobol routine to print BPM files, but according with the documentation this routine also support others file types like BMP, GIF, EXIF, JPG, PNG and TIFF.
So we try to print a JPG file but always we get the return code 18 (Failed to load bitmap)

Has anyone been able to print another type of file?

call "PC_PRINTER_LOAD_BMP" using printer-handle
                             by reference "mflogo.jpg" & x"0"
                             by reference bmp-id
                           returning  printer-retcode.

We are using Visual Cobol for Eclipse 2.3 Update 2 Hotfix 1

thanks,


#VisualCOBOL
#BPM
#jpg
#Printer
Thanks I couldn't replay before, but the Micro Focus support team found that this is an error on documentation, the PC_PRINTER_LOAD_BMP only works with BPM files.