Jump to content


Willkommen im Coresystems Community Forum

Dieses Forum wird nicht mehr weiter betrieben.
Sollten Sie eine Lösung für eine spezifische Aufgabenstellung suchen wenden Sie sich bitte an unseren Support: helpdesk.coresystems.ch.
Für allgemeine Produktinformationen kontaktieren Sie unser Sales-Team: sales@coresystems.ch

Welcome at the coresystems community forum

This forum is no longer being maintained.
If you need a specific solution please contact our support: helpdesk.coresystems.ch.
For general product information do not hesitate to contact our sales team: sales@coresystems.ch

Photo

Get Printed Document

coresuite customize sdk designer print Print Document framework pdf API

  • Please log in to reply
11 replies to this topic

#1 it-Manara

it-Manara

    Member

  • Members
  • PipPip
  • 12 posts

Posted 5 May 2013 - 15:09

Hi All,

we need with SBO Add-on under coresuite framework to get the printed document, and then we need to convert it to pdf file

could you please give us how we can get it with API, and what is the event we need?

#2 it-Manara

it-Manara

    Member

  • Members
  • PipPip
  • 12 posts

Posted 13 May 2013 - 09:21

Hi All, any help ;)

#3 Paolo Manfrin

Paolo Manfrin

    Advanced Member

  • Moderators
  • 418 posts
  • LocationSwitzerland

Posted 13 May 2013 - 13:33

Hi,
what do you mean by "to get the printed document"?

Could you explain a bit more i detail the business process? Thank you
paolo

#4 it-Manara

it-Manara

    Member

  • Members
  • PipPip
  • 12 posts

Posted 20 May 2013 - 14:14

Hi,
what do you mean by "to get the printed document"?

Could you explain a bit more i detail the business process? Thank you
Paolo

 

thanks Paolo for your reply

 

our issue is: after the user print the LD reports, we need to get the pdf file from this report for send it to  web service

we can create the pdf with the method LayoutHelper.LayoutOpener.ExecutePrintDef we need to printDefCode and the param List, so I used the ProcessArchive event but I couldn't catch it with the Add-on



#5 it-Manara

it-Manara

    Member

  • Members
  • PipPip
  • 12 posts

Posted 22 May 2013 - 12:08

Help... Help ...elp :rolleyes:



#6 Friederike Mundt

Friederike Mundt

    Advanced Member

  • Moderators
  • 293 posts

Posted 22 May 2013 - 12:16

Hi,

 

To get an idea how to catch the print event with coresuite customize and get the PDF I would suggest to have a look at the coresuite customize sample rule: "BUP:0015: Create activity on Batch Printing". This rule creates an activity with the pdf attached everytime a document is printed with certain conditions.

 

Looking at the rule should give you some useful hints how to catch the right event and process the PDF.

 

Hoope this helps.

 

Cheers,

Friederike



#7 it-Manara

it-Manara

    Member

  • Members
  • PipPip
  • 12 posts

Posted 22 May 2013 - 13:06

thank you Friederike,

 

this rule use this code to generate the pdf file and this statement executed:

  // if not email or fax just do a pdf
  LayoutHelper.LayoutOpener.ExecutePrintDef(pVal.ReportEvent.PrintDef.Id, true, LayoutHelper.LayoutOpener.OpenLayoutModes.PDF,
   "DocEntry",
   pVal.ReportEvent.GeneralData.SubmittedParams.GetParameterValue("DocEntry"),
   "AddMode",
   pVal.ReportEvent.GeneralData.SubmittedParams.GetParameterValue("AddMode"),
   "FormType",
   pVal.ReportEvent.GeneralData.SubmittedParams.GetParameterValue("FormType"),
   "AfterSave",
   pVal.ReportEvent.GeneralData.SubmittedParams.GetParameterValue("AfterSave"));
  return true;

 

 

but I can't find the pdf file, I searched in the field "Export File Name" of the Printdefinition, but I didn't find it


 

 



#8 Paolo Manfrin

Paolo Manfrin

    Advanced Member

  • Moderators
  • 418 posts
  • LocationSwitzerland

Posted 22 May 2013 - 13:12

In the printDefinition, under the tab "Email/Fax" you find the Export Path. Specify an export path, e.g. C:\

In the printDefinition, under the tab "Document" you find the Export File Name. Specify an export name

 

hth

paolo



#9 it-Manara

it-Manara

    Member

  • Members
  • PipPip
  • 12 posts

Posted 22 May 2013 - 13:34

I set the Export Path and the

 

CoresuitDes.PNG?psid=1

CoresuitDes1.PNG?psid=1

 

 

but I cant find the pdf file :(



#10 Paolo Manfrin

Paolo Manfrin

    Advanced Member

  • Moderators
  • 418 posts
  • LocationSwitzerland

Posted 22 May 2013 - 13:37

ensure that the rule is triggered using a messageBox and a try catch to be sure no errors have been committed.

check the debugLog to investigate on possible errors.

 

If you need further assistance you can contact our supportcenter at helpdesk.coresystems.ch . Our team will help you in configuring the system.

 

hth

paolo



#11 it-Manara

it-Manara

    Member

  • Members
  • PipPip
  • 12 posts

Posted 22 May 2013 - 13:48

I am sure the rule triggered and the ExecutePrintDef method executed without errors but I can't find the file :(



#12 TodAnderson

TodAnderson

    Member

  • Members
  • PipPip
  • 13 posts

Posted 29 January 2016 - 12:30

my installation does not have this sample rule, is there somewhere I can get it? or find all of the samples







Also tagged with one or more of these keywords: coresuite, customize, sdk, designer, print, Print Document, framework, pdf, API

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users