Printing out of addon
Erik van Dongen
Hi,I'm trying to print from my own form. This form has a button with the following code:
private void ReportViewedPreorders_clicked(ItemPressed e)
{
LayoutHelper.LayoutOpener.OpenLayout("code out table @SWA_LD_LAYOUT", new string[]{"PreorderId", "1"});
}
I don't realy know what the LayoutCode is so i assumed that it is the code out of the table @SWA_LD_LAYOUT. And PreorderId is the name of my parameter and 1 the value. The code is executed without errors but nothing is happening...
I also tried:
LayoutHelper.LayoutOpener.OpenLayout(LayoutHelper.LayoutOpener.OpenLayoutModes.Preview, "139",
"PrintDef", "U0000044", "PreorderId", "1");
Where 139 is the form i choose in my print defenitions and U0000044 is the code of my printdefenition. The form 139 is just there to have a form.
Can you please help me to open a preview of this layout?
Philipp Knecht
Hi ErikFor printing its recommended to use the LayoutHelper.LayoutOpener.ExecutePrintDef(..) - Method.
Minimum requirement for Marketing Documents (Sales Order,...) is the DocEntry Parameter. So your Parmeterlist should contain ..."DocEntry",123,...
Let me know if this solves your issue.
hth
Erik van Dongen
Hi Philipp,Thanks for your answer. I tried this to but still no result. I also send you an e-mail with some more details and screendumps.
I hope you can find the problem when you see my e-mail.
Best Regards,
Erik
Philipp Knecht
Hi ErikDid you try it from withinn the real environment?
hth
0
Please sign in to leave a comment.
Comments
0 comments