cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

PaperSize hell

patrick_simons2
Participant
0 Likes
3,838

First if I try to save a Page Setup (using CR 2016 SP5) for a Dymo label printer, CR doesn't keep the papersize. After changing to the correct values I save the report:

then I close the report and I reopen it:

and the 11354 has gone away. Any ideas?

Also when using Don's test program, the correct papersize is also missing:

As you see the PaperSize is already wrong after opening the report:

PS. I'm testing RAS using CR VS.Net SP22.

Another question: would it be possible to save the 11354-papersize back to the original reportfile using RAS (SaveAs-method)?

Regards,

Patrick

View Entire Topic
patrick_simons2
Participant
0 Likes

Back to my original problem.

Let's say I'm working only with local printers (no Easy Print) and CRDesigner finds all printer info's and paper sizes. How can I change the paper size and save it back to the report (rpt) with CRVS, so when I reopen CRD 2016, that the Page Setup shows the changed paper size?

I have installed a local Dymo 450 which has some paper sizes predefined:

In the report I have saved with CRD f.ex. the 1st one:

_rptMain.PrintOptions.PaperSize (CrystalDecisions.CrystalReports.Engine.PrintOptions) contains 193

testOpts.PaperSize (CrystalDecisions.ReportAppServer.ReportDefModel.PrintOptions) contains 193
testOpts.SavedPaperName "11353 Multi-Purpose"

Now, how can I change and save back to the rpt f.ex. 195?

_rptMain.PrintOptions.PaperSize = CType(195, CrystalDecisions.Shared.PaperSize)

or 

testOpts = _rptClientDoc.PrintOutputController.GetPrintOptions()
testOpts.PaperSize = CType(195, CrystalDecisions.ReportAppServer.ReportDefModel.CrPaperSizeEnum)
_rptClientDoc.PrintOutputController.ModifyPrintOptions(testOpts)

_rptMain.SaveAs("someRpt")

won't work - back in CRD the Page Setup shows "User Defined Size" or sometimes another format like "30333 1/2 in"...

Am I missing something?

I also looked in your test program, but I can't find this logic....

Patrick