HELP - setting page margins doesn`t work correctly

Hi there,
maybe someone encountered the same Problems I am facing.
I am setting the page margins for the Left-Side to have enough space to punch the printout.
Somehow CR seems to ignore the values I set when printing a Report.
Most of the times I have too much space on the right side and not on the left side.
The margin on the Left side seems to be the min-margin of the printer.
What`s wrong with the Reports?
CR 2008 with SP1 is used.
The Reports are not designed against a specific Printer.
The virtual Printerdriver of CR is used.
Greetz
Ricardo

>
Don Williams wrote:
> Hi Ricardo,
>
> There is a new API that allows you to dissociate the printer... that is by default not checked on in the Report file.
>
> Try setting it to true in your app and test again:
>
>             // new API added to allow changing printing options
>             newOpts.DissociatePageSizeAndPrinterPaperSize = true;
>
> Search the Object Browser for how to use it.
>
> Thank you
> Don
Don (or anyone else),
I try to get to the DissociatePageSizeAndPrinterPaperSize but I can't figure out how to access it.
I use CR 2008 with Visual Studio 2005, Visual Basic. My goal is to get an unrestricted right hand side
of my report, so I can have as many columns as I want. (I have a different thread about this).
First of all: If I search DissociatePageSizeAndPrinterPaperSize in the Object Browser, it can't find it.
(I have performed an upgrade for CR XI R2 to CR 2008 and it seemingly went well).
Here is what I do in code (a modified web download for testing):
Option Strict On
Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared
Partial Class _Default
    Inherits System.Web.UI.Page
    Private rpt As ReportDocument
    Private exportPath As String
    Private myDiskFileDestinationOptions As DiskFileDestinationOptions
    Private myExportOptions As ExportOptions
    Private selectedNoFormat As Boolean = False
    Private Sub ConfigureCrystalReports()
        rpt = New ReportDocument()
        Dim reportPath As String = Server.MapPath("Hierarchical Grouping.rpt")
        rpt.Load(reportPath)
        Dim myPrintOptions As CrystalDecisions.ReportAppServer.ReportDefModel.PrintOptions = _
                      CType(rpt.ReportClientDocument.PrintOutputController.GetPrintOptions(), _
                      CrystalDecisions.ReportAppServer.ReportDefModel.PrintOptions)
        Dim newPrintOptions As CrystalDecisions.ReportAppServer.ReportDefModel.PrintOptions = myPrintOptions.Clone(True)
        Dim newMargins As CrystalDecisions.ReportAppServer.ReportDefModel.PageMargins = newPrintOptions.PageMargins
        newPrintOptions.PageMargins = newMargins
        newMargins.Right = 1000
        'newPrintOptions.PaperSize = CrystalDecisions.ReportAppServer.ReportDefModel.CrPaperSizeEnum.crPaperSizePaperA3
        ' newPrintOptions.PaperOrientation = CrystalDecisions.ReportAppServer.ReportDefModel.CrPaperOrientationEnum.crPaperOrientationLandscape
        rpt.ReportClientDocument.PrintOutputController.ModifyPrintOptions(newPrintOptions)
        myCrystalReportViewer.ReportSource = rpt
    End Sub
This prints a wider page on-screen than without the code, so it is an improvement. Still, I would like to go
further, and the DissociatePageSizeAndPrinterPaperSize seems to be promising.
Can you tell me how to set it in the context above?
A little observation: When my newMargins.Right gets the value 145, the output is a narrow page.
When it is set to 146, it jumps to a wider page.
Setting the PageContentWidth doesn't help any more than the Right option.
- Kjell Arne

Similar Messages

  • Game Center doesn't work correctly

    Game Center on iPod Touch 2nd Gen doesn't work correctly under iOS 4.2.1
    It shows wrong language (Englist but not my native language. My region setting is right and the system language right too.)
    Besides, the "Games" page only has a button "Find Game Center Games", while it should show my Game Center Games.
    The Friends page shows all my friends. But when I press a friend the sub page doesn't show the game my friend and I have in common.
    I've restored my device several times, but it didn't help.
    How to solve it?

    I've had exactly the same problem on my 2nd gen since early May when it just stopped working out of the blue.
    There are a few threads here on the subject. I believe that every 2nd gen is affected as I've yet to hear a 2nd gen owner say that theirs works.
    Other than waiting for Apple to fix it I don't think there is a solution.

  • Page naviagation doesn't work after deploy ADF application to Weblogic

    After deploy my ADF application (ear) to Weblogic Server, the page navigation doesn't work. When running the ear on weblogic, I got following warnings:
    <2010-11-5 下午05时06分01秒 CST> <Warning> <J2EE> <BEA-160195> <The application version lifecycle event listener oracle.security.jps.wls.listeners.JpsAppVersionLifecycleListener is ignored because the application HwtOrder is not versioned.>
    <2010-11-5 下午05时06分38秒 CST> <Warning> <netuix> <BEA-423420> <Redirect is executed in begin or refresh action. Redirect url is /console/console.portal?_nfpb=true&_pageLabel=AppApplicationOverviewPage&AppApplicationOverviewPortlethandle=com.bea.console.handles.AppDeploymentHandle%28%22com.bea%3AName%3DHwtOrder%2CType%3DAppDeployment%22%29.>
    <2010-11-5 下午05时07分33秒 CST> <Warning> <netuix> <BEA-423420> <Redirect is executed in begin or refresh action. Redirect url is /console/console.portal?_nfpb=true&_pageLabel=DiagnosticsViewDomainLogTablePage&DiagnosticsViewDomainLogTablePortlethandle=com.bea.console.handles.LogDispatchHandle%28%22DefaultServer%3BDomainLog%22%29.>
    I can run the application correctly in jdeveloper 11g environment. I think there is something wrong with deployment. Can anyone help me?

    When you target url with .jspx, you are running the page itself, not in the task flow context, so navigation doesn't work.
    In the task flow, your page has 'Activity ID' (which is, for example, 'mainPage' for mainPage.jspx) and the navigation is defined for activity IDs, not pages.
    Pedja

  • [svn] 4028: Bug: Draining of buffered messages doesn' t work correctly with long-polling.

    Revision: 4028
    Author: [email protected]
    Date: 2008-11-06 09:04:26 -0800 (Thu, 06 Nov 2008)
    Log Message:
    Bug: Draining of buffered messages doesn't work correctly with long-polling.
    QA: Yes - please make sure both nio and regular long-polling channels work with throttling.
    Doc: No
    Checkintests: Pass.
    Details: Made sure that buffered messages are drained properly with all polling channels (polling, long-polling, and nio-long-polling).
    Modified Paths:
    blazeds/trunk/modules/core/src/flex/messaging/client/FlexClient.java

    Sounds like you've probably already looked but the CUPS article in the wiki led me through setting up a printer without any problems.  http://wiki.archlinux.org/index.php/CUPS
    The first section describes how to troubleshoot CUPS and printing problems.
    I've also found a few other posts and links that may help.
    http://hplipopensource.com/hplip-web/mo … eries.html
    http://ubuntuforums.org/showthread.php?t=419163
    Hope this helps!

  • How to set page margins in Numbers 3

    I just migrated from MS Excel after decades of use. I can't find out how to set page margins using the new Numbers 3 version. I believe I've exhausted all reference materials and the most relevant was an method in Numbers 8 & 9... both of which have a different top menu selection.  The answer is probably right in front of me and simple as it sometimes happens when learning new software...

    Hi caforestfire,
    There is no direct equivalent to page margins in Numbers 3.0. It's more oriented toward sharing on the web and on iPad screens than toward traditional printing.
    However, there are ways to achieve the effect of margins.  The idea is to first position your content (tables, charts, etc) on the canvas of a sheet, using rulers and guides if you want (you can drag the rulers onto the canvas to help in placement):
    Then you File>Print and in Print Preview fiddle with the slider until you get the white space you want around your content:
    Then click Print.
    For many purposes it works quite well. It's just a different approach from what we're used to in Excel, and the old Numbers 2.3.
    SG

  • Link on my website doesn't work correctly on my iMac. It works correctly on Safari, and both browsers on my laptop.

    Link on my website doesn't work correctly on my iMac. It works okay when using Safari. It also works correctly on my laptop using either browser.

    We worked out my problem. My solution turned out to be: Firefox Preferences/Applications. Scroll down until you find "Portable Document Format (application)", click on it and use the dropdown menu to the right and changed "Save file" to "Use Adobe Acrobat Pro (default). I had trouble at first finding if the listing was under Adobe, Acrobat, or what so I used the search feature and found it immediately.
    Hope this helps.

  • AddChild doesn't work correctly in 11.9

    comparing the two releases listed below, somehow my Flash program doesn't work correctly on the latest version anymore, nothing was changed in my program but after upgrading to the latest Flash Player, it doesn't work properly anymore, specifically, the items I add through the addChild method doesn't appear properly, was there any changes in between these versions that could have affected the addChild behavior? I'm testing with Windows  7 IE debug version and I see no script errors
    Released 10/8/2013) Flash Player 11.9.900.117 (156.2 MB)
    (Released 9/24/2013) Flash Player 11.8.800.175 (Win IE only) (50 MB)

    Could you please open a new bug report on this over at bugbase.adobe.com?  When adding the bug, please include sample code, test url or a test swf so we can quickly test this out internally.  If you'd like to keep this private, feel free to email the attachment to me directly ([email protected]). 
    Once added, please post back with the bug URL and I'll investigate internally.
     

  • IPhoto doesn`t work correctly with german "umlaut" (ä,ö,ü) in keywords

    iPhoto doesn`t work correctly with german "umlaut" (ä,ö,ü) in keywords. They get to ä̈,ö̈, ü̈ when I write the keyword a second time. Can anybody tell me why. Thank you. Heinz

    It apparently does not like non-standard English characters - use A-Z and 0-9 adn you should be OK
    report to Apple - iPhoto menu ==> provide iPhoto feedback
    LN

  • After upgrade my iphone 4 to IOS6, sound doesn't work correctly

    After upgrade my iphone 4 to IOS6, sound doesn't work correctly.
    During a phone call, there is no sound. But if I turn on the speaker, there is sound. itune works fine since it's on the speaker.

    Dear All
    i have done the same activity ( buy a new iphone 4 -> upgrade to ios5 - > configure email) with success-
    than when i start to move the contacts from old mobile to iphone (using the microsim) i receive the same crash
    in disgnosis e use i saw 2 dump with this title 'latestCrash-Preferences.plist and LatestCrash.plist. in each file the date is the same and i read:
    Exception Tyle: EXC_CRASH (SIGABRT)
    Exception code: 0x00000000, 0x00000000
    Chrashed Thread: 6
    in thread 6: name: Dispatch queue:
    com.apple.addressBookUI.ContactsSettingPlugin
    and thaan a lot of data.
    Have you any idea?
    thank in advance
    Fabio

  • Translation from CS5 to Cloud doesn't  work correct, navi and linked images are broken.

    Translation from CS5 to Cloud doesn't  work correct, <navi> and linked images are broken.
    The data of CS5 was created at another PC. I installed Cloud version into two different PC. One has had the site data since dreamweaver CS5 and it works correct in Cloud version. Another PC got the site data from remote server and it doesn't work correct. <navi> and linked image are broken.

    Another PC got the site data from remote server and it doesn't work correct. <navi> and linked image are broken.
    This implies your site is not properly defined in DW.  Go to Site > Manage Sites.
    Or simply go to your other installation of DW and export the site definition file from Manage Sites.
    Save it to a flash stick or other removable drive.  Then import the STE file into your 2nd installation of  DW.
    Nancy O.

  • ITunes 10.4 full screen with Win7-64bit doesn't work correctly.

    iTunes 10.4 full screen with Win7-64 doesn't work correctly. I have the Windows taskbar on the left side of my screen. Maximized iTunes is panned to the left.

    Same issue here. When the Windows taskbar is position on the top of the screen and then the iTunes windows is maximised, it's position is as if the Windows taskbar is at the bottom of the screen so the top of the iTunes window sits under the taskbar.
    For those wanting a workaround, hold shift and right click the iTunes icon in the taskbar/quick launch bar and click restore, at least then you can adjust it to be full screen manually.
    System:
    Windows 7 Ultimate x64
    iTunes 10.4
    ATI 5750 video card

  • Google page translate doesn't work

    Hi,
    Google translate page translate doesn't work in firefox 29.0.1 (mac osx).
    Translate.google.com -> type in url in the box and then translate gives me
    "This page was not retrieved from its original location over a secure connection."
    and then nothing happens. I cleared caches and cookies, also did safe mode to disable all add-ons, still doesn't work.
    Google translate does work in other browsers (Opera 12.16).
    Can someone tell me how to fix this?
    Thanks

    You can look at an extension like one of these.
    *FoxLingo: https://addons.mozilla.org/firefox/addon/foxlingo-translator-dictionary/
    *ImTranslator: https://addons.mozilla.org/firefox/addon/imtranslator/

  • How can I avoid duplicates on contacts and how do I get contacts created on iPhone/ipad synchronized on my mac? so far it doesn't work correctly, just sometimes. same for icalendar

    how can I avoid duplicates on contacts and how do I get contacts created on iPhone/ipad synchronized on my mac? so far it doesn't work correctly, just sometimes. same for icalendar

    On your Mac, for duplicates, switching Contacts off then back on in System Preferences > iCloud may prevent duplicates.
    On the iPhone / iPad tap Settings > iCloud. Make sure Contacts and Calendars are swtiched on.
    Try restarting your Mac and your iOS devices when items won't sync as they should.
    To restart an iOS device:  Hold the On/Off Sleep/Wake button down until the red slider appears. Slide your finger across the slider to turn off iPhone. To turn iPhone back on, press and hold the On/Off Sleep/Wake button until the Apple logo appears.

  • ASR1002 - For DNS it seems that NAT doesn't work correctly

    Hi Folks,
    For DNS it seems that NAT doesn't work correctly
    The ASR 1002 works as a NAT-Router. But for DNS it seems that NAT doesn't work correctly.
    All DNS packets with a frame size greater than 512byte are not processed (they donїt arrive at the DNS Server), but we can't verify if they are dropped or just not processed.

    Sorry guys its everytime*

  • When printing from file, print or print preview, must set page size @ 40% to get correct printing. IE is ok only wrong on firefox!

    when printing from file, print or print preview, must set page size @ 40% to get correct printing. IE is ok only wrong on firefox! edit

    What happens when you select a scale higher than 40%?

Maybe you are looking for