c# - How to change printer paper size to A6 or custom paper size in SAP Crystal reports? -


i'm making report of custom papersize printed through c# windows forms application using sap crystal report. while setting printer options code in c# before printing , don't find way set custom paper size within crystal report code.

rpt.printoptions.papersize =crystaldecisions.shared.papersize.papera5 ; 

i wonder if there there way set custom paper size in print options

rpt.printoptions.papersize =crystaldecisions.shared.papersize.mycustomsize; 

  • from printer preferences in control panel > create custom paper size need
  • from crystal report > rt. click > design > page setup page options > uncheck dissociate formating page size , printer page size > choose custom paper size
  • don't modify printer page size using code
  • finally work without problems

Comments

Popular posts from this blog

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

arrays - Algorithm to find ideal starting spot in a circle -