Quantcast
Viewing all articles
Browse latest Browse all 3636

Crystal report custom paper size

Greetings..!

crystal reports stored paper size in non portable way (i.e.) ID rather than name. Is there any chance to get that ID manually.

Crystal report Version: CRforVS_13_0_5

I used this following code to find programatically

int k;

int rawKind = 0;

for (k = 0; k < pd.PrinterSettings.PaperSizes.Count; k++)

{

    if (pd.PrinterSettings.PaperSizes[k].PaperName == "Mypapername")

{

   

rawKind = k;

   

}


it works on my development computer well and when i deployed it, at the time of application access this code  stops working(A program caused a problem windows will close it soon).

Thank you.


Viewing all articles
Browse latest Browse all 3636

Trending Articles