You are viewing limited content. For full access, please sign in.

Question

Question

Cast error using PdfExporter92 in a Workflow 9.2

SDK
asked on January 7, 2015

I previously used the export PDF function in a 9.0 workflow SDK VB script and it was working just fine.

I am now implementing it in a 9.2 system and I get a Cast error.

I have used the VB example from the SDK 9.2 help file in section "PDFExporter.ExportPages Method"

LFSO90 is present on WF 9.2 as the default LFSO and only PdfExporter92 is present. I get the cast error.
If I add reference to LFSO92 instead of LFSO90, I get the cast error

The only difference from my previous working environment is the usage of the PdfExporter90 but is not present on this 9.2 system. Should I install the SDK90 runtime on the cusotmer workflow system to install PdfExporter90 and resolve my issue?

 

0 0

Replies

replied on January 7, 2015

After installing SDK9.2 on that system, this added the PdfExporter90 to my 9.2 system

Using the following... solved my issue

Imports LFSO90Lib
Imports PdfExporter90
Imports System.IO
....
Inherits SDKScriptClass90
....

But if I want to use the newer components from 9.2 (LFSO92 & PdfExporter92), I am trying the following and I get that cast error

Imports LFSO92Lib
Imports PdfExporter92
Imports System.IO
....
Inherits SDKScriptClass90
....

Is it possible the issue comes from the Inherits ?    there is only "SDKScriptClass82" "SDKScriptClass83" and "SDKScriptClass90" available but no "SDKScriptClass92"

 

Any hint on how to use the latest components versions in a WF Script?

0 0
replied on January 7, 2015

There is no SDKScript92 class. The SDK script activity was switched over to RepositoryAccess in 9.1 and higher. Your script with LFSO90 and PDFExporter90 will still work in Workflow 9.1 and higher.

If you want to use newer versions of the librries, you could either switch over to using RA and DocumentServices, or if you want to stick with LFSO and DocumentProcessor 9.2, you'll want to make sure the SDK runtime is installed on the Workflow Server, then add references to the 2 dlls.

What exactly does the cast error message say?

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.