Skip to content

Instantly share code, notes, and snippets.

@wwitzel3
Created June 19, 2020 17:24
Show Gist options
  • Save wwitzel3/7f91f4362b8d7a848651c37502d2ab87 to your computer and use it in GitHub Desktop.
Save wwitzel3/7f91f4362b8d7a848651c37502d2ab87 to your computer and use it in GitHub Desktop.
function create(registrationSvc: PluginRegistrationService) {
//registrationSvc.SetCapabilities(myCapabilities);
registrationSvc.SetPrintHandler(myPrinter)
}
function myPrinter(printRequest: PrintRequest) :string {
let key = printRequest.KeyFromObject()
let clientResp = printRequest.Client.Get(key)
return "Object: " + printRequest.Object() + ", Key: " + key + ", Client.Get: " + clientResp;
}
// ---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment