Skip to main content

Viewing PDF docs

  • March 15, 2019
  • 2 replies
  • 0 views

Forum|alt.badge.img

Hi,

We use Uniface 9.7.03 for development and since lately we cannot view a pdf document.

We used OCXContainer to get the pdf document:


$ocxhandle$ = $ocxhandle("content.dummy")
if ($pdf_url$ != "")
$ocxhandle$->set_src($pdf_url$)
elseif ($pdf_location$ != "")
$ocxhandle$->loadfile($1, $pdf_location$)
endif
$ocxhandle$->setshowtoolbar(0)


After executing first line,  next error occured:

ICCDRV-COM-ERR Error with ICC system occurred, Unable to get COM type information for COM class "AcroPDF.PDF.1": COM error 0x8002802b, described as "Kan element niet vinden." (ICC system status: ←2147319765>)"

Why is this happens? And is there a solution?

kindly regards,

Erhan


2 replies

Forum|alt.badge.img
  • Participating Frequently
  • March 18, 2019

Hi,

We use Uniface 9.7.03 for development and since lately we cannot view a pdf document.

We used OCXContainer to get the pdf document:


$ocxhandle$ = $ocxhandle("content.dummy")
if ($pdf_url$ != "")
$ocxhandle$->set_src($pdf_url$)
elseif ($pdf_location$ != "")
$ocxhandle$->loadfile($1, $pdf_location$)
endif
$ocxhandle$->setshowtoolbar(0)


After executing first line,  next error occured:

ICCDRV-COM-ERR Error with ICC system occurred, Unable to get COM type information for COM class "AcroPDF.PDF.1": COM error 0x8002802b, described as "Kan element niet vinden." (ICC system status: ←2147319765>)"

Why is this happens? And is there a solution?

kindly regards,

Erhan


Hi Erhan,

Can you use the HTML widget? You can also view a PDF file in this widget, which should be simpler than using a COM component.

Gilles.


Forum|alt.badge.img
  • Author
  • Participating Frequently
  • March 18, 2019

Hi Erhan,

Can you use the HTML widget? You can also view a PDF file in this widget, which should be simpler than using a COM component.

Gilles.

I can use HTM widget, which operation to use?

Do you have a examlple for  me?