Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3585

Re: call (from script) which Tray is the Paper Source to be used when printing a report.

$
0
0

Good Morning Don,

 

I am very close to an answer to my problem...  If I may, one more push and we are there.  Here is what I have.

           

crReportDocument = My Crystal Report document I am trying to print

lnTray = the Enum for the desired tray. (i.ex. 260)

 

I have tried many variations but cannot find the right way to pass this to the report. 

 

I have the following using statements in the process, am I missing one?

using CrystalDecisions.CrystalReports.Engine;

using CrystalDecisions.Shared;

 

This is my latest failure...

 

 

           

crReportDocument.PrintOptions.PaperSource = CrystalDecisions.Shared.PaperSource.Enum(lnTray);

 

What am I missing?

 

 

 

 


Viewing all articles
Browse latest Browse all 3585

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>