IndentAndSpacingFormat - Bug in API or am I doing something wrong?

I have a FieldObject in my report with double line spacing (LineSpacing=2) and then try following code to see its spacing format:
double lineSpacing = myFieldObject.FieldFormat.StringFormat.IndentAndSpacingFormat.LineSpacing;
Unfortunately this returns 1 instead of 2! It always returns 1, no matter which field object I try it for. Am I doing something wrong?
Thanks in advance...

Hi John,
I've duplicated the issue. It seems to be a problem only when the field type is defined as Memo in CR Designer. If the field is a String type then it returns the correct value.
I'll have to escalate this to R&D to fix. It will take 2 or more months depending on their load or more.
Verified indents do not return the correct value also. Likely related to the field type.
Thank you
Don
Edited by: Don Williams on Jan 29, 2009 2:17 PM
Edited by: Don Williams on Jan 29, 2009 2:46 PM

Similar Messages

  • Is this a bug in Java, or am I doing something wrong?

    I have a Vector which I want to convert to an array, so I wrote my code something like this:
    MyObject a = new MyObject("A");
    MyObject b = new MyObject("B");
    MyObject c = new MyObject("C");
    MyObject d = new MyObject("D");
    Vector v = new Vector();
    v.add(a);
    v.add(b);
    v.add(c);
    v.add(d);
    MyObject[] list = new MyObject[v.size()];
    list = (MyObject[]) v.toArray();This should work, however it gives me a ClassCastException at runtime. Of course, I found ways around it, like using
    v.toArray(list);But using the method this way does not make any sense because according to the API it is not void, but supposedly returns another array of Objects in addition to filling up the array which you pass to it.
    Does anyone know the correct way to use the toArray() method, or it's even more mysterious overloaded companion, toArray(Object[] a)?

    With regards to the Vector.toArray() method that takes an Object[] as an argument, you would normally use it this way:
    Vector vector = <whatever>; // contains only instances of MyClass
    MyClass[] array = (MyClass[])vector.toArray(new MyClass[vector.size]);While you're right that if you declare the array first and then simply pass it to the toArray() method that the array will get filled with the appropriate values. However, the array that is returned is not necessarily the array that was passed in. If the array that is passed in is shorter than the number of elements in the Vector, a new array of the same type as the one passed in is allocated and it is that array which is returned. The API only says that an array is returned, not the original one. Here is the source code for the toArray() method for you to look at:
        public synchronized Object[] toArray(Object a[]) {
            if (a.length < elementCount)
                a = (Object[])java.lang.reflect.Array.newInstance(
                                    a.getClass().getComponentType(), elementCount);
         System.arraycopy(elementData, 0, a, 0, elementCount);
            if (a.length > elementCount)
                a[elementCount] = null;
            return a;
        }Shaun

  • Is this a bug in ipod software or am i doing something wrong?

    I got my ipod video a few weeks ago and was excited to be able to carry all 7000+ songs around in one place.. but then i ran into this problem and i'm not sure if it's a bug or if i'm doing something wrong.
    let's say i have exactly one album by an artist.. and i also happen to have some singles from the artist, with no album set... (i prefer not to have albums set for songs i don't have the entire album for, to keep from having to sort through a truckload of albums i don't completely have).
    when i browse by artist, and i select the artist, only the songs in the album shows up, all the non-album labeled songs are not visible! the same thing happens when i choose by genre..
    in fact the only way to find those songs not bound to an album is to select them from the song list.. and having to scroll through 7000+ songs to find one really bites..
    curiously enough, if there is two or more albums, then i can find the songs without albums.. definately sounds like a bug to me.. the software for the ipod video is only at v1.0, maybe they'll fix this (hopefully other ipods don't have this problem, i have no way of knowing though).
    one work around i have tried is to set an empty album for the artist's song that has none, but i mean i don't want to do that for all my non-albumed songs because i'm interested in preserving the timestamp of songs (to know when i got them) and i can't reasonably search for songs that have exactly one album to just set those..

    when i go to Music > Artist > All, as you suggested, i see all the albums i have listed. doesn't really relate to my problem with artists with songs in one album, as well as song w/o album set, and the latter not showing up.
    but that reminds me, why is it when i go to the All section from a particular artist and they do have more than one album (or even no albums), the order of the songs is in the order they are in the albums.. if i wanted the order it is on albums, i would have selected that album for example.. it would be nice if the songs were in alphabetical order when you're NOT browsing by album, making a particular song easier to find (what if you have thirteen albums for example and u aren't sure which album a song is on, now you have to scroll through a seemingly random ordered list to find one song, alphabetical would be SOOOO helpful!)

  • Bug in shuffle? or am I doing something wrong?

    Hi,
    I have a number of 1-minute clips that each have a 3 second text name on them in track v2. I've decided I want to re-order some of the clips, and I'm having more trouble with it than expected.
    First I tried to attach the name to the audio and video clips using
    Modify->Link, but that does not seem to work for linking two video clips in the timeline together. (I also tried attaching the text to one of the audio tracks, but all that did was unlink the "real" video that went with the audio.)
    I decided it's not that hard to just select both video tracks for each move, I'll just shuffle them together. I can't get shuffle to work properly! It worked (sortof) once. I selected both video and audio tracks, dragged them to the new location, hit "Option", watched the pointer change, and released the mouse. The selection moved, but instead of rippling the change down, it left a gap. It did not overwrite the other item in the track as though I had not hit option.
    I can work around that I'll just be left with a gap as I move segments forward to where the correct sequence is.
    Now comes the problem: I can't even repeat that! It seems no matter what I do, I can't shuffle segments in the timeline, they will overwrite. I've tried moving just the V1 segment, with the intent of moving the text later, no luck; it overwrites! I make sure that the arrow changes when I press the option key, and it does, although sometimes it changes to the right arrow instead of the little bendy one. Either way it overwrites instead of inserting. I've tried cmd-x cmd-v to cut and paste, but again it overwrites.
    Is this a bug I've triggered? or am I doing something wrong? I've read through page 200-201, volume 2 of the manual fairly carefully and I think I'm doing it right.
    I am using FCP 5.0.4.
    Thanks,
    --Beth
    PS. Even if it did work correctly, I think I'd prefer to shuffle automatically, and overwrite by pressing the option key. Is there any way to set that in a preference?

    It always works for me. You cannot shuffle multiple clips. Well, if you do, it will leave a gap. Why? dunno.
    I believe if your video and audio are not linked (cmd-L and you can only link audio and video, not multiple video clips) they will be considered multiple clips.
    The "bendy" arrow is the one you want and it varies based on where in the track your pointer is. Lower - insert, upper (I think) leaves a gap. Also, I always press the option key after I've started moving, but before it settles, but I don't think that should affect your operation as long as you push option after you've started moving, but before you let go.
    As to changing the option behavior, I don't think there's a way...
    Patrick

  • Maven dependency mgmt: am I doing something wrong?

    (title shortened to simply not make it too long, not because I am l33t).
    I have a little frustration that only makes me wonder if I am doing something wrong. My general opinion about maven is that it is a great tool that can save a lot of effort managing builds. However, I sometimes find myself traversing down dependency management hell. The source of my problems: transitive dependencies.
    Is it me, or is the maven repository tree polluted? Sometimes I have no other option (that I know of) than adding manual exclusions to my parent poms to filter out transitive dependencies I really do not need, and in some cases even cause conflicts. Now I must say, most of these problems stem from JBoss endorsed projects such as Seam and JBPM.
    If for example I add JBPM 3.3.2 to my application I get Jackrabbit, Lucene and whatever else for "free" with it - I exclude them to keep my dependency tree clean because during runtime these dependencies really are not needed.
    Worse is when I want to use JBoss Seam 2.1.2 (on JBoss 4.2.3, unfortunately I cannot go to a newer JBoss yet) - to be able to do this I must include a dependency org.jboss.el/jboss-el to the project and war, otherwise a single util class cannot be found (grrr). But this dependency transitively adds javax.el / el-api - at compile scope! If this is let slip through and a war is deployed with this dependency present, a classpath isolated environment will give classloader clashes with the classes that the JBoss server itself provides. So I add an exclusion...
    These were just isolated examples and certainly not the only ones I encountered so far. Does anybody else experience these kind of issues? And is there perhaps something obliviously obvious that I am failing to do which would rid me of the need to add manual exclusions? Or am I correct in stating that the repository really is this polluted?

    I've seen that effect, but luckily not to a degree where it got a huge problem. Simply write the necessary excludes when you see such a case and go on. It wasn't necessary too often yet.
    The problem seems to stem from the fact that many Maven artifacts are simply "project X". That means that each and every feature that project X provides is bundled in a single jar which draws in each and every dependency that project X has anywhere.
    The smarter (or at least more maven-friendly) approach would have been to split project X in "project X - core functionality", "project X - lucene search support", "project X - frobnicator" and provide a "project X - everything" module that pulls in all there is for the project.
    This way we could pick only those modules that we need in our dependency and therefore also get only those transitive dependencies that we really need.
    Unfortunately only a few projects have that kind of architecture, so we'll have to live with the excludes for a while.

  • Presets - am I doing something wrong?

    Wonder if someone can quickly tell me what I'm doing wrong here.
    I'm trying to add a preset which I can drop onto other clips quickly and easily.
    I take a clip and apply the effect I want to it. I then choose that effect in the Effects Control Window and try and "Save Preset" but it is greyed out. Am I missing an obvious step here?????

    Hi Tom - thanks for your reply - however, I think you've just verified that it simply isn't working for me as that is exactly what I have done. I noticed it was greyed out and thought I would do all the changes in the Effects Control panel itself but even when I create it from scratch in there or change an already created effect then it still stays greyed out for me. It is the Time Remapping I'm trying to do here as well.
    The problem with the Copy and Paste attribute is that doesn't work properly either!!!! I've created a 50% speed remap - but when I copy it and paste attribute - although it says it's 50% it clearly isn't and sometimes is only about 10% longer than the original clip. It appears to be another bug in the software although I was hoping I was doing something wrong!!
    Thanks for your reply anyway though.

  • Security risk? or am i doing something wrong?

    hello all,
    i administer a snow leopard server machine to serve out files via AFP to a small company. i think i may have either discovered a security bug, or if i'm doing something wrong, if someone would be kind enough to help, i'd greatly appreciate it. here's what happening (with criticial info changed obviously):
    let's say the server has two users that login to access files, userA and userB.
    userA's password to login is boat and userB's password is train.
    either userA or userB can successfully login and gain access whether they use boat or train as their password.
    i only discovered this as userB's password is the same as userA's old password on a Tiger server we had years ago, and userA was able to successfully log in with this old password that should have been rejected. i then did a test to see if the other way work, and lo and behold yes, that's when i found out that any user can log in successfully so long as ANY user's password was being used.
    i haven't been able to test various OS flavors, but all of our client boxes run Leopard, while the server is Snow 10.6.3.
    am i doing something wrong in my user set ups? it doesn't seem like this would be an intended feature. thanks to anyone that can help.
    j

    That certainly doesn't sound right, but it's such a fundamental part of file sharing that it needs further investigation.
    First thing to check is whether guest logins are available, and whether you're actually logging in as a guest rather than a registered user when the incorrect password is used.
    The server's logs (or Server Admin) should be able to confirm this.
    While I might expect an incorrect password to reject the login, if you have guest access you're essentially saying you don't care about authentication anyway, so it might be the issue.
    The second thing to check is whether the same happens on other forms of login to the server, e.g. ssh, SMB, etc.
    That will help identify whether the problem relates to AFP or something more global on the server (e.g. there may be a local account for userA and userB that's being used rather than the Open Directory account you expect.

  • I cannot change from grid view to list view when i contol click on the downloads folder on the dock am i doing something wrong? if so how do i change the ?view in the dock

    when i contol click on the downloads icon in the dock i get the gris view . I thought if you control click, you are able to change the view to fan or list. am I doing something wrong.? Icheck to make sure the contol key is working by doing a screenshot and it works there. What am I doing wrong?

    Needs to be a Stack ?

  • I have added photos to My Photo Stream on my PC (Windows 7). They appear in the Uploads folder instead. They do not upload to iCloud. Am I doing something wrong?

    I have added photos to My Photo Stream on my PC (Windows 7). They appear in the Uploads folder instead. They do not upload to iCloud. Am I doing something wrong?

    Unfortunately, photo stream on a PC is iffy at best.  Many people have problems getting it to work properly, including myself.  A work around would be to use an app like PhotoSync on your PC, which can send photos wirelessly to the camera roll on any of your iOS devices on the same wifi network.  Once in the camera roll, you iOS device will be added to your photo stream.

  • Iphone 4s wont sync when I connect it to the pc( not apple). It is connected as it comes up on itunes but when I try to sync it with apps/ music etc it wont. I am doing something wrong or is it a mistake with the phone.

    My iphone 4s wont sync when I connect it to the pc( not apple). It is connected as it comes up on itunes but when I try to sync it with apps/ music etc it wont. I am doing something wrong or is it a mistake with the phone. I am still able to download apps and music from itunes on my phone though.
    I already restored it but that didn't help.
    TIA for any replies.

    iPod touches or any iDevices from Apple sync only to one computer. If you sync to a different computer, all your music will be replace with the music from the new computer's iTunes. If the music were purchased from iTunes, you can re-download them again otherwise the music on iPod touch will be deleted. Do you have iTunes backup? 

  • I have backed up my old phone to itunes, however, when I try to restore data to new phone it is saying the password is incorrect but I can get into my itunes account with my password so I am doing something wrong?

    I have backed up my old phone to itunes, however, when I try to restore data to my new phone it is saying the password is incorrect but I can get into my itunes account with my password so I am doing something wrong?

    I'm having this EXACT same problem with my iPhone 4, and I have the same computer stats (I have a Samsung Series 7)

  • I have a Windows 8.1 and it's even running slow.  I'm a complete novice with computers (I've only had this one for 3 weeks) and I'm probably doing something wrong, but I haven't a clue what....

    I have a Windows 8.1 and it's even running slow.  I'm a complete novice with computers (I've only had this one for 3 weeks) and I'm probably doing something wrong, but I haven't a clue what.
    The tools are not responding when I try to use them.  Some of them work sometimes, but not others and some don't work at all.  I'm in a design class online and I need these tools desperately.  I have an assignment due Monday and I'm losing the whole weekend because Tech Support is only open M-F!
    Any help anyone can give me will be appreciated.
    Thanks,
    Rose Ireland

    Maybe these links provide some pertinent information.
    Optimize performance | Photoshop CS4, CS5, CS6, CC
    Photoshop: Basic Troubleshooting steps to fix most issues

  • HELP! Downloaded LR5 and when open it shows an error message saying error while trying to change from modules and I can not even import photos. Am I doing something wrong?

    HELP! Downloaded LR5 and when open it shows an error message saying error while trying to change from modules and I can not even import photos. Am I doing something wrong?

    I have the same problem, and the solutions in   Error changing modules | Lightroom do not work.  Even uninstalling and reinstalling a new copy did not solve the problem.  As anyone got an idea what other lingering files might be causing the problem?

  • After creating a new slideshow I export it with the  setting HD 1080p it is then saved as a .mov i then create a dvd in idvd and the quality is not  as good as the original photo's when viewed on the monitor or a TV, am i doing something wrong?

    After creating a new slideshow I export it with the  setting HD 1080p it is then saved as a .mov i then create a dvd in idvd and the quality is not  as good as the original photo's when viewed on the monitor or a TV, am i doing something wrong?

    DVD's are only 640 x 480 (interlaced), so yes, the quality is not nearly as good.  You should probably create your .mov in DV format to best match the DVD format

  • I just purchased Adobe Acrobat in order to convert a pdf to an excel program but it appears that it will only convert to Word, not excel? Am I doing something wrong or should I cancel my subscription?

    I just purchased Adobe Acrobat in order to convert a pdf to an excel program but it appears that it will only convert to Word, not excel? Am I doing something wrong or should I cancel my subscription?

    What happens when you convert to excel?

Maybe you are looking for

  • Best Practice for Expired updates cleanup in SCCM 2012 SP1 R2

    Hello, I am looking for assistance in finding a best practice method for dealing with expired updates in SCCM SP1 R2. I have read a blog post: http://blogs.technet.com/b/configmgrteam/archive/2012/04/12/software-update-content-cleanup-in-system-cente

  • Failed reresh filesystem on openfiler

    I have nfs on openfiler 2.99 with OVM 3.0.2 and i cant refresh file system. I got next error message: ob Construction Phase begin() Appended operation 'FileSystem refresh' to object '56fb1e82-1db9-4cee-a360-7c94fbbb11ac (nfs:/mnt/volgrp1/ofs/stgp)'.

  • Browser Selection using Javascript

    Hi All, I am using a multi select ibrowser for a query data set.I am calling a function on selection of that item on browser. But on page load I need to take default as first row of that browser and need to call the function related to that. But i am

  • CryptoAPI & Java RC4 problem

    Hello, I have a problem with some cryto code I'm doing in Java and I'm stuck. I need some help. Here is my problem, I have an app made in VC++ that uses cryptoapi to cipher some data. Now I have to redo that app in Java, and I have to mantain backwar

  • Doubts in java basics.

    class A {      public void methodTest() {           System.out.println("Inside class A"); class B extends A {      public void methodTest() {           System.out.println("Inside class B"); class C extends B {      public void methodTest() {