cancel
Showing results for 
Search instead for 
Did you mean: 

Reports margins and size issues

jun_makita
Explorer
0 Kudos

I upgraded Crystal Reports runtime 10.2.0 to 13.0.23.

I have same problem as this link.

https://answers.sap.com/questions/8351596/the-cr-2010-for-vs-engine-changes-the-margins-and.html

I will setting OS registry, but I have not found a detailed document of this setting.

Please let me know this registry influence, other than margin and scale.

Key:"HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Crystal Reports\DesignerOptions"

Name:"DealWithMinimalMarginsWhenPrinting"

Value:"0"string

Regards

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Ah, thanks for the info, seems we need to add this one to it.

2458191 - RAS .NET SDK will get a different printing result compared to Crystal Reports Designer (gated - requires a support contract to access. I will make a KBA that is public)

Update: KBA -2829461 - RAS .NET SDK will get a different printing result compared to Crystal Reports Designer

Here's the registry keys to add:

SAP Crystal Reports, version for Microsoft Visual Studio,

32bit SDK Application

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Crystal Reports\DesignerOptions] "DealWithMinimalMarginsWhenPrinting"=”0”

64bit SDK Application

[HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Crystal Reports\DesignerOptions] "DealWithMinimalMarginsWhenPrinting"=”0”

Registry key usage:

When Dissociate Formatting Page Size and Printer Paper Size is checked:
"Reg key =1" or nokey, keep large margins.
"Reg key = 0", turn on minimal margins printing.

When Dissociate Formatting Page Size and Printer Paper Size is unchecked:
The reg key does NOT take effect. Always print minimal margins.

jun_makita
Explorer
0 Kudos

Hi, Don.

Excuse me , I want to ask it again.

>Registry key usage:

>When Dissociate Formatting Page Size and Printer Paper Size is checked:

>"Reg key =1" or nokey, keep large margins.

>"Reg key = 0", turn on minimal margins printing.

What does large margins mean. My imagine is correct?

Large margins : Printer driver's default margin

Minimal margins : Settings in layout files

Answers (14)

Answers (14)

jun_makita
Explorer
0 Kudos

Hi, Don.

Thanks a lot. I want you to tell me a little more.

>No you don't have to fix your reports, some may need to be adjusted but most will work fine.

For example, what reports need to be adjusted?

We need test all reports using all printers?

And I don't understand large margins and minimal margins...

If no one knows it, I give up it.

0 Kudos

Yes, we do always recommend updating the version of the report but not completely required.

No you don't have to fix your reports, some may need to be adjusted but most will work fine.

It was just the name of the registry key, it was just added so it matches the format of CR Designer.

jun_makita
Explorer
0 Kudos

Hi Don.

I've already tried DealWithMinimalMarginsWhenPrinting registry setting.

It affected layouts created with Visual Studio 2005 designer.

Does new version of Crystal Reports runtime support layouts created by older designers?

If Crystal Reports runtime updated, we have to recreate all layouts?

And I don't understand large margins and minimal margins.

How much inches?

0 Kudos

Ah, VS 2005 won't work with the latest CR for VS packages. And that registry key won't work with that version either.

There are not more patches available for VS 2005.

Only option is to upgrade to VS 2010 -> 2019

Don

jun_makita
Explorer
0 Kudos

Hi Don.

I using Visual Studio 2005 designer. Dissociate option was not see in Page Setup.

If using Visual Studio 2005 designer and saved, Dissociate option to be checked or unchecked?

And I don't understand large margins and minimal margins.

Regards,

Makita

0 Kudos

Hi Jun,

That option is part of Crystal Reports.

Open you report in CR Designer, then click on Page Setup, now you see the margins and the Dissociate option. Check on the Dissociate.

What this does is remove the specific dependency on that printer and just uses the paper size and margins for which ever printer you select.

Hope that's clearer?

Don

jun_makita
Explorer
0 Kudos

Thank you this info.

I want you to tell me a little more.

>When Dissociate Formatting Page Size and Printer Paper Size is checked:

Is it means layout file with printer settings?

Sorry, I only have a Japanese screen.

>"Reg key =1" or nokey, keep large margins.

>"Reg key = 0", turn on minimal margins printing.

What does large margins mean. My imagine is correct?

Large margins : Printer driver's default margin

Minimal margins : Settings in layout files

jun_makita
Explorer
0 Kudos

I could not find about DealWithMinimalMarginsWhenPrinting registry from SAP Note 2165260 list.

Is there another list?

0 Kudos
jun_makita
Explorer
0 Kudos

Is that about Incident 151207? I think this is default printer problems.

https://wiki.scn.sap.com/wiki/display/BOBJ/Copy+of+Crystal+Reports%2C+developer+version+for+Microsof...

I knew this problem. I switch default printer from .NET before preview.

By the way ,Is there no official document about DealWithMinimalMarginsWhenPrinting?

If did not there documents, I will talk to customer abount it was knows nobody.

0 Kudos

Citrix uses the Redirected Print option, install the printer on the Local PC or on the Citrix Server and upgrade to SP 24.

Microsoft change the registry key CR uses to load printer info, SP 24 has that fix in it.

Don

0 Kudos

Citrix uses the Redirected Print option, install the printer on the Local PC or on the Citrix Server and upgrade to SP 24.

Microsoft change the registry key CR uses to load printer info, SP 24 has that fix in it.

Don

0 Kudos

That link is to a very old version of CR runtime, lot's of changes since then.

Don't use those virtual printer drivers, use a real printer, even if you don't have one install one for report designing.

Most of them don't work properly, CR requires a real printer when setting margins. If it can't find the printer it defaults to your Default Printer. Likely your default printer is the MS XPS printer or possibly a PDF printer driver.

jun_makita
Explorer
0 Kudos

I changed DealWithMinimalMarginsWhenPrinting in the customer's environment.

It seems to work well.

Customer environments need to print using Citrix auto-created printers. I don't know if this is the cause.

I afraid new problem occur in customer's environment by this registry setting.

Please let me know this registry influence.

DellSC
Active Contributor
0 Kudos

If you can access it, SAP Note 2165260 contains a list of all of the registry settings that can be used with Crystal along with links to notes that describe what the setting does.

-Dell

jun_makita
Explorer
0 Kudos

I could not find about this registry from SAP Note 2165260 list.

Is this registry setting not supported by Crystal Reports?