How do you Change Group Sort Direction using Report Client

It looks like there should be a sort direction property on the ISCRGroupOptions object but there is none. So how do you set the sort direction of the group?

I tried that and it did not work. Here's the code to change the grouping, note I also change the associated sort object. I did notice that if you go into the crystal reports designer and bring up the Record Sort Export and select the group's corresponding sort that the Sort Direction radio buttons are disabled. The question is how to change the sort direction shown on the Change Group Options dialog?
        public bool GroupModify(short GroupIndex, string TableName, string ColumnName, SortDirection SortDirection)
            bool result = false;
            if ((_ReportClient != null) && (GroupIndex >= 0) && (GroupIndex < this.GroupCount()))
                CrystalDecisions.CrystalReports.Engine.Group docGroup = _ReportDocument.DataDefinition.Groups[GroupIndex];
                ISCRField field = _ReportClient.DataDefController.FindFieldByFormulaForm(docGroup.ConditionField.FormulaName);
                if (field != null)
                    Group group = _ReportClient.DataDefController.GroupController.FindGroup(field);
                    if (group != null)
                        Group newGroup = group.Clone();
                        newGroup.ConditionField = FieldGet(TableName, ColumnName);
                        if ((newGroup.ConditionField != null) && (_ReportClient.DataDefController.GroupController.CanGroupOn(newGroup.ConditionField)))
                            _ReportClient.DataDefController.GroupController.Modify(group, newGroup);
                            result = this.SortSet(TableName, ColumnName, SortDirection);
            return result;
        public bool SortSet(string TableName, string ColumnName, SortDirection SortDirection)
            bool successful = false;
            if (_ReportClient != null)
                ISCRField field = FieldGet(TableName, ColumnName);
                if (field != null)
                    ISCRSort sort = _ReportClient.DataDefController.SortController.FindSort(field);
                    if (sort != null)
                        _ReportClient.DataDefController.SortController.ModifySortDirection(sort, CRSortDirection(SortDirection));
            return successful;
        public int GroupCount()
            int count;
            if (_ReportClient != null)
                count = _ReportClient.DataDefController.DataDefinition.Groups.Count;
            else
                count = 0;
            return count;

Similar Messages

  • HT5312 How do you change the email address used to send security answers?

    How do you change the email used to send the security answers you have forgotten? I have changed the alternative email adress in Name, ID and Email Addresses but this does not change the email address in the Password and Security section.

    Jus what do you want to accomplish? The Apple ID email address is used for variosu thing onthe iPod like:
    - For purchasing media. Srrings.iTunes and App stores. Sing out and sign into anoterh account
    - Settings>iCLoudl for iCloud account
    - Settings>FaceRome for Apple ID and where You can Be Reached At email address
    - Settings>Messages for Send And Receive email address.
    - Maybe for Game Center

  • How do you change password with out using cd on imac?

    How do you change password with out cd on imac?

    Please read:
    http://osxdaily.com/2011/08/24/reset-mac-os-x-10-7-lion-password/

  • How do you change the search engine used in the address bar?

    I use the address bar to search, instead of the actual search bar field. Why? It's easier. Or, it used to be. It used to use Google. Now it's using Yahoo!. This is unacceptable. Haha. How do I change which search engine is used in the ADDRESS bar?

    had this problem after accidentally downloaded the yahoo toolbar along with an adobe product. Firstly, tried to remove it control panel in add/remove programmes but it refused to uninstal. Since then was told by technicians of my ip to use Revo uninstaller the free ed. Next step was go to tools then options. On the general tab, at the bottom you will find manage-add-ons. under search provider do not want. f yahoo is still there disable it.
    Also go to internet options in control panel and set up there too. Be sure to find and tick the option that other search engines cannot change yours. Be sure to set the appropriate home page.

  • How can I change the sorting direction of Events in Photos?

    How can I change the date Sort "direction" in Photos for the iPhoto Events folder?  Unlike iPhoto, which sorted the older photos at the top, Photos does the reverse.  Can this be modified?

    >System Preferences>Hardware>Mouse>Point & Click>Scroll Direction.

  • HT3529 How do you change phone number iPad Uses

    My wife's iPad mini is stuck with my iPhone number for messages?
    Wher do I change it.
    The Settup let's you change Email, but not phone numbers?

    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
     Cheers, Tom

  • How do you change fonts in an HTML report?

    Hello all,
    I need to create a report from a test that I've written, and my only feasible option is HTML. Unfortunately, I know next to nothing about HTML, so I'm using the LabView VI's to build the report.
    In the attached VI, I've written a program that simply plops a couple lines of text down and saves it in the HTML format. The color, font style, font type all seem to work fine, and when I change them I see the changes reflected in the HTML document. The size, however, doesn't change.
    What I need to do is have the ability to have different lines of text be different sizes, or even 1 word in a sentence be a different size.
    How do I do this?
    What am I doing wrong?
    Any help would be greatly app
    reciated!
    Dave Neumann
    [email protected]
    Attachments:
    htmltrial.vi ‏78 KB
    111.html ‏1 KB

    Dear Dave,
    The setting of the size is working but your parameters are inadequate for a HTML document.
    The reporting VIs are generating HTML which is decrepated. It generates a FONT tag with a size attribute with "30pt" and "10pt" as you have set in the Set Report Font parameters. The HTML standard allows only values of "1" to "7". The standard works with relative sizes so a "pt" does not apply to it. "1" is the smallest size and the actual displayed size depends on the setting of the browser. In MS IE you can set it under View>>Size to one of five degrees.
    If you would use "5" and "7" instead of "10pt" and "30pt" you will see the text in different size.
    Your values are coerced to 7. That's why you see something you didn't expected.
    Unfortunatly
    I have no experience with the reporting VIs. I'm not sure if they can use the style sheet formatting which will allow font sizes measured in points.
    Waldemar
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • How do you remove partner as admin use from client's website?

    Hi Guys,
    Can any one advice me on how to remove ourselves (partner) as admin from a client's website in V3 so that we would stop receiving all their system emails etc?
    On the older admin it was simple case of going to the users section under admin and removing the partner user.
    Thanks in advance.

    For us its not so much about removing ourselves from User roles - yes, QED - but its more important to have the control and also provide a level of invisibility if needed. BC support can remove us quickly and add us back in, but that means I either have to log a ticket (and in the last 6 months none of my tickets have had responses sooner than 2-3 days! ...so I don't bother any more), OR wait 15-20 minutes in the queue for a live chat plus however long it then takes them to complete.
    If we don't have that instant control and one of our resellers, or indeed a client, calls us to make a quick intervention, we'd like the control to add ourselves back in at an instant, do the work and get out again. That is the real need and issue. The fact that BC have removed an option that was useful is certainly not helpful or progress in my opinion.

  • How do you change the sort order of mp3 songs?

    I have transfered MP3 files from my PC to itunes & iPod and created my own compilation albums for some of my favourite artists. However I would like to change the order of the songs but I dont know how to do this. I cant see what itunes or the ipod is using to determine the sort order!
    thanks
    Tom

    tinny's advice will work if you gave them an album name and they are actually listed in your library as an album. (Under Get Info, just tell it track 1 of 10, 2 of 10, etc.)
    IF you created a playlist for the album, click on the column for the track numbers and then click and drag the songs into the order you want.

  • How do you change the sort order of a Stack on the Dock in List view?

    I want to change the 'Date Added' sort in the list view mode of a stack from descending to ascending.
    I have the Downloads stack sorted by 'Date Added', however I would like to reverse the order of this sorting. When I open the stack, it shows the oldest files at the bottom and newest files at the top. Since there are many hundreds of files, the newest files are actually hidden and I must scroll up to access them. When I access this folder I want to see the most recent files first, at the bottom of the list nearest the stack icon, not the files I downloaded years ago.
    I prefer to use the traditional List view for Stacks because it is faster (no animations or loading preview icons) and easier to navigate visually. Please do not suggest a different view mode such as fan view or use-new-list-stack.

    Have you tried changing the list with the numbers? (See the screen shot)

  • CR XI R2 Sp6 - How do you change the default printer used by the Viewer?

    CR XI R2 Sp6
    .NET
    VS2005, C++
    The app selects printer for the job as m_Report->PrintOptions->PrinterName = ss_Device;
    This works nicely for printouts to the printer, but is ignored by the viewer. There, the machine default printer is always selected when I hit the print button.
    Found this which is sortof similar:
    http://forums.sdn.sap.com/thread.jspa?threadID=1275149
    Is there any way to fix this? If no, then is it fixed in more recent versions of CR?

    All of that above can be changed at runtime, but you'd somehow need to figure out what the default printer driver is on each machine and then assign it to the report.
    Yes,but that is exactly what I do. The app normally uses the Windows default printer just as any C++/MFC app will do. On the file menu there is an option to select printer which calls CWinApp::OnFilePrintSetup(); which sets the application default printer setup.
    In the app there is a function to retrieve the default printer:
    CString CLpApp::GetDefaultPrinter()
         PRINTDLG     pd ;
         CString          printer("Failed") ;
         pd.lStructSize = (DWORD)sizeof(PRINTDLG) ;
         BOOL bRet = GetPrinterDeviceDefaults(&pd) ;
         if (bRet)
              // protect memory handle with ::GlobalLock and ::GlobalUnlock
              DEVMODE *pDevMode = (DEVMODE*)::GlobalLock(m_hDevMode) ;
              printer = pDevMode->dmDeviceName ;
              ::GlobalUnlock(m_hDevMode) ;
         return printer ;
    When I print, I do:
    void CSkrivDlg::StartReport(CLpReportJob^ jobb)
         jobb->SelectPrinter("",theApp.GetDefaultPrinter(),"");
         if(m_tillSkrivare)
              jobb->OutputToPrinter(1);
         else
              jobb->OutputToWindow("Fönsternamn", 0, 0, 200, 200, 0, NULL, NULL);
    This works correctly for OutputToPrinter(1);, but not for OutputToWindow() which are simply wrappers for the CR functions:
    bool CReportJob::OutputToPrinter(int nCopies)
         bool rc = true;
         try
              m_Report->PrintToPrinter(nCopies,true,0,0);
         catch (Exception ^e)
              TRACE("
    %s",e->Message);
              m_LastError = e->Message;
              rc = false;
         return rc;
    // OutputToWindow()
    // a,b,c,d = Fönsterkoordinater eller noll för default
    // style = flaggor för fönsterposition
    // window = fönster efter vilket vi dyker upp
    // child = rapportfönstrets handle om vi vill ha den
    bool CReportJob::OutputToWindow(CString Namn, int a, int b, int c, int d, int style, CWnd* window, CWnd **child)
         bool rc = 0;
         CString title="Dummy1";
         title = m_Report->SummaryInfo->ReportTitle;
         CFloaterDlg *Floater = new CFloaterDlg(NULL);               // TODO: Get window
         Floater->Create(IDD_FLOATER_DLG, NULL);
         if(Floater != NULL)
              m_Report->ExportOptions->ExportFormatType = CrystalDecisions::Shared::ExportFormatType::PortableDocFormat;
              Floater->m_Viewer->ReportSource = m_Report;
              Floater->m_Viewer->Zoom(theApp.m_ScreenZoom);
              // Sätt fönsterrubrik från rapporten
              Floater->SetWindowText(title);
              // Puffa på så att den kan ändra storlek på Crystal-kontrollen
              Floater->Size();
              // Visa fönstret om det är stängt
              if(!Floater->IsWindowVisible())
                   Floater->ShowWindow(SW_SHOW);
              rc = true;
              if (child!=NULL) *child=Floater;
         else
              AfxMessageBox("Kunde inte skapa fönster för utskrift",MB_OK);
              rc = false;
         return rc;
    Floater is simply a dialog that holds the Viewer control.
    For some reason does the Viewer not obey the printer selection done in the report

  • How do you change the font InDesign uses when no style is applied?

    All my InDesign templates (CS4) are now looking for [Times (T1)] in odd places such as spaces between words in a header, the space after the last period in a paragraph or blank returns between paragraphs. I tried all the normal suggestions (checking every character and paragraph style including "basic paragraph", selecting a font in the charater pallette with and without a document open, and even clearing indesign preferences and cache files). After all this, I created a brand new blank document to test whether or not this occured in anything other than my template files. I didn't create any styles at this point, just drew a text box and started typing. In the new document the first line is in the font I chose, but when I hit return the next is in Times. It appears that after the return InDesign switches from Basic Paragraph back to "no styles". Is there a way to change this default font or prevent blank spaces and returns between paragraphs from turning to this setting? Thanks for any suggestions. With one file it's not that big of a deal to find and replace but when you start working with a book containing many files it is quite a hassle to wade through the missing font windows in order to verify it is only this and not an actual font missing. 

    With no documents open.
    Go the Paragraph Styles Panel
    Clear Overides for the Basic Paragraph
    Edit the style
    And change "Apply Next Style" to "[Same Style]"

  • How do you change the picture size using airplay? The image is small

    Using the mirror feature,  the image is not filling up the screen on a 48" 1080p TV any ideas?
    Thanks in advance..

    Mirroring won't fill the TV screen. The iPad has an aspect ratio of 4:3 and the iPhone 4S or prior an aspect ratio of 3:2, neither of these will fit exactly into a TV screen which as an aspect ratio of 16:9. The Apple TV will not zoom the mirrored image, because it may well cut off information which is situated at the top or bottom of the screen.
    You may wish to try each of the settings in settings > AirPlay > Adjust for Overscan for the best setting that suits you.

  • How do you change the text direction in Adobe InDesign CS6?

    My version is the middle eastern version and i don't want my punctuations to go to the start of the sentence. Also, i went to preferences>type and i can't find the text engine option so i'm lost right now.

    Try Mail Preferences/Junk tab and under " When Junk Mail Arrives" click Performe Custom Action then advanced
    you will see the option for colors.
    Hope this helps

  • How do you change the email address associated with your apple id

    how do you change the email address used for your apple Id I have tried going on managing apple Id and it isn't working

    Just where are you going?
    and what do you see? A screen shot with personal info redacted would be great.
    I no longer have an email address that was also my Apple ID. Can I still use the email address as my Apple ID?
    Apple recommends you change your Apple ID to your current, working email address. This will not create another Apple ID, it will only change it to your working email address. See Changing the name you use for your Apple ID if you'd like more information.

Maybe you are looking for

  • Missing Option to Use Airplay on Apple TV on Ipad

    I recently ugraded both my Ipad and Apple TV.  After doing this, I no longer get the option on my Ipad to use apple TV.  I live in Mexico so I access US TV now thru Google on the IPad and then move it to the Apple TV. This previously worked fine and

  • Function module to change

    is any function module available to change the date format yyyy/mm/dd to yyyy/mm Thanks Kumar

  • Custom infotype creation

    Hi, I need to create an infotype with custom fields. the layout is such that there are field names with checkboxes(around 10), date fields and text fields. ex: Asset information                                                         quantity        

  • Glow.aex cannot be loaded. How do I fix?

    Whenever I apply Glow to an adjustment layer, a popup up says "After Effects Error: plug-in "Glow.aex" could not be loaded", although it is in my effects and presets. I have provided screenshots to further explain my problem.

  • Sent mail symbol missing

    Recently my Mail is acting up. I select e-mail press reply, do it, send it and most of the times that little symbol of e-mail answered will not show up!? It creates quite a bit of confusion since that is what I do all the time and always afraid that