on 09-11-2008 10:25 AM
Hi,
Is it possible to set the option "File" -> "page setup" -> "Margins" -> "adjust automatically" from the code...before printout ?
Maybe this is done only in the Crystal tool...but I want the same result on my templates.
Rgds,
Lars
Hi, Lars;
No, I do not see any option to adjust the margins automatically via our SDK. Have a look at the SDK library here:
https://boc.sdn.sap.com/node/11690
Regards,
Jonathan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks alot for the answers!
I have alot of templates made in old versions of CR(some of them behave strange when we changed to CR 12 runtime...not correct margins), I hoped that i could convert all with a home made tool.
Rgds,
Lars
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That functionality is only in the Crystal Report Designer. It should therefore work if you set that option for each report when designing the report.
What happens is we query the default printer and retrieve the printers margins and thena djust the page accordingly. This is all done within the crw32.exe using a combination of our API's and Windows API's.
To do so you need to use the RAS server which will require the full developer version of CR Designer, the parts included with .NET is CR Basic and does not include RAS.
Using the RAS API's with this function will allow you to set the margins after you query the printer driver for it's margins: CrystalDecisions.ReportAppServer.Controllers.ISCRPrintOutputController.ModifyPageMargins(int, int, int, int)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
79 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.