wpurrer

automatically generated "pdi - Files" in Csharp

Discussion created by wpurrer on Apr 6, 2011
Latest reply on Apr 13, 2011 by wpurrer

* I need to migrate a couple of old user interfaces to processbook.
* from the old system i have the tags per screen
* how do i create in .net / c#  screen

 


The following gives me the error message:

 

System.Runtime.InteropServices.COMException was unhandled
  HelpLink=""
  Message=The called method is not supported in embedded mode.
  Source=PI ProcessBook
  ErrorCode=-2147213170
  StackTrace:
       bei PBObjLib.DisplayClass.SaveAs(String szFileName, pbpdFILEFORMAT vFileFormat)
       bei ConsoleApplication1.Program.Main(String[] args)
       bei System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
       bei System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       bei Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       bei System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       bei System.Threading.ThreadHelper.ThreadStart()
  InnerException:

 

=====

 

PBObjLib.Application ap = new PBObjLib.Application();
PBObjLib.
Display d = new PBObjLib.DisplayClass();
d.SaveAs(
"test.pdi");

Outcomes