How can I export to Text and/or CSV format and get correct page info?

I am using CRVS2010 to upgrade an application from CRXI RDC to .Net.  When at runtime I generate the report and export to Text or CharacterSeparatedValues my page footers show Page -1 of 1.  Using the CRXI RDC, I see the correct page info in the footers.
When I export to Text, I get the Page -1 of 1 for every page.  If I set LinesPerPage to zero, then I get it all on one page, which still has Page -1 of 1 at the end.
If I export to CSV, I get Page -1 of 1 for every line.  If I use the viewer to review the report at runtime, and export from there, I cannot export as Text so I have no comparison.  However, the Export to CSV from the Viewer as Page -1 of 1for every entry just as my export does.
What do I need to do to get the correct line info?  What is that is different from CRXI RDC and CRVS2010 .net that would impact this behavior?

Yes, I am using SP2 for VS 2010 and I'm using the Page N of M formula in the page footer.  While my export code was not quite as simple as yours, I did it both ways in my test program with the same results.  A one page report whose footer says Page -1 of 1.
Here's the relative code snippet:
#if 0
    CrystalDecisions::Shared::ExportOptions ^exportOptions = gcnew CrystalDecisions::Shared::ExportOptions();
    exportOptions->ExportDestinationType = CrystalDecisions::Shared::ExportDestinationType::DiskFile;
    exportOptions->ExportFormatType = CrystalDecisions::Shared::ExportFormatType::Text;
    TextFormatOptions ^textFormatOptions = exportOptions->CreateTextFormatOptions();
    textFormatOptions->LinesPerPage = 0;
    textFormatOptions->CharactersPerInch = 11;
    exportOptions->FormatOptions = textFormatOptions;
     CrystalDecisions::Shared::DiskFileDestinationOptions ^diskFileDestinationOptions = exportOptions->CreateDiskFileDestinationOptions();
     diskFileDestinationOptions->DiskFileName = gcnew System::String("c:\temp\test.txt");
     exportOptions->DestinationOptions = diskFileDestinationOptions;
    thisReport.Export(exportOptions);
#else
    thisReport.ExportToDisk(CrystalDecisions::Shared::ExportFormatType::Text, gcnew System::String("c:\temp\test.txt"));
#endif
Edited by: nlDevotie on Jan 9, 2012 11:59 PM

Similar Messages

  • How Can I Export Our WIki in a CSV Format?

    Victims of our own success: what was originally created as internal content on our private OS X Server wiki now is being requested for presentation on an externally hosted web service. Management wants this content to be accessible to constituents on the outside in a searchable database on a completely different service not administered by us on the inside.
    The developer building the database has asked for this content to be exported in CSV for easy import into the new database: page title, tags (a.k.a. keywords, not to be confused with HTML formatting tags), and page content.
    Sadly, according to the Wiki Server Admin Guide (p. 73), the Wiki service does not appear to store page content in any kind of database, but rather in separate files. Thus I can't see a way to provide the requested data short of copying and pasting content from each individual wiki page on the OS X Server.
    Considering that we're talking about ~200 pages of content, I'd like to avoid a manual process of that kind. I've been through the official Wiki Server Admin Guide, but it offered no help for exporting content in the way I need.
    I'm fairly comfortable with AppleScript, less so with shell/bash scripting. Since I'm trying to save time, I'm not sure that's my answer on this scale. Debugging a script (for me) might take longer than a simple copy/paste of 200 items (maybe I'm wrong).
    Does anyone have a different way of looking at this I haven't thought of? Am I missing something?
    Thanks in advance,
    Axiom

    Unfortunately, exporting the wiki data into a format that databases can understand is not a trivial process. Pages are stored as a collection of folders that contain the wiki text, the HTML for display, the change history, the comments, and the attachments.
    In a default setup, the page folders are under /Library/Collaboration/Groups/{groupname}/wiki . All folders under Groups can only be viewed by using root access permissions.
    For example, for a wiki page accessed by:
    http://yourserver.com/groups/general/wiki/abc12/mywikipage.html
    Under /Library/Collaboration/Groups/general/wiki
    abc12.page - folder for wiki page
    !- attachments - folder for attachments
    !- images - folder for images
    ! page.html - html (probably a cache) for display
    ! page.plist - property list file with all notes on the
    ! revisions.db - SQLite database file that contains all the revisions.
    You would need a script that runs as the _teamserver user to read every .page directory, parse the .plist files, and generate a SQL statement to preserve all the text, markup, and quotations. If you program really well, you could search for the URLs in every .plist file and record the embedded attachments and images, and copy them to another location.
    For my first project, I parsed the .plist files just to get a map of the random page URL and the title. I also found out about "deleted" and "tombstoned" states, and elected to ignore those.
    If I get a moment I'll write about that next.

  • How can we export table data to a CSV file??

    Hi,
    I have the following requirement. Initially business agreed upon, exporting the table data to Excel file. But now, they would like to export the table data to a CSV file, which is not being supported by af:exportCollectionActionListener component.
    Because, when i opened the exported CSV file, i can see the exported data sorrounded with HTML tags. Hence the issue.
    Does someone has any solution for this ... Like, how can we export the table data to csv format. And it should work similar to exporting the data to excel sheet.
    For youre reference here is the code which i have used to export the table data..
    ><f:facet name="menus">
    ><af:menu text="Menu" id="m1">
    ><af:commandMenuItem text="Print" id="cmi1">
    ><af:exportCollectionActionListener exportedId="t1"
    >title="CommunicationDistributionList"
    >filename="CommunicationDistributionList"
    >type="excelHTML"/> ---- I tried with removing value for this attribute. With no value, it did not worked at all.
    ></af:commandMenuItem>
    ></af:menu>
    ></f:facet>
    Thanks & Regards,
    Kiran Konjeti

    Hi Alex,
    I have already visited that POST and it works only in 10g. Not in 11g.
    I got the solution for this. The solution is :
    Use the following code in jsff
    ==================
    <af:commandButton text="Export Data" id="ctb1">><af:fileDownloadActionListener contentType="text/csv; charset=utf-8"
    >filename="test.csv"
    >method="#{pageFlowScope.pageFlowScopeDemoAppMB.test}"/>
    ></af:commandButton>
    OR
    <af:commandButton text="Export Data" id="ctb1">><af:fileDownloadActionListener contentType="application/vnd.ms-excel; charset=utf-8"
    >filename="test.csv"
    >method="#{pageFlowScope.pageFlowScopeDemoAppMB.test}"/>
    ></af:commandButton>
    And place this code in ManagedBean
    ======================
    > public void test(FacesContext facesContext, OutputStream outputStream) throws IOException {
    > DCBindingContainer dcBindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    >DCIteratorBinding itrBinding = (DCIteratorBinding)dcBindings.get("fetchDataIterator");
    >tableRows = itrBinding.getAllRowsInRange();
    preparaing column headers
    >PrintWriter out = new PrintWriter(outputStream);
    >out.print(" ID");
    >out.print(",");
    >out.print("Name");
    >out.print(",");
    >out.print("Designation");
    >out.print(",");
    >out.print("Salary");
    >out.println();
    preparing column data
    > for(Row row : tableRows){
    >DCDataRow dataRow = (DCDataRow)row;
    > DataLoaderDTO dto = (DataLoaderDTO)dataRow.getDataProvider();
    >out.print(dto.getId());
    >out.print(",");
    >out.print(dto.getName());
    >out.print(",");
    >out.print(dto.getDesgntn());
    >out.print(",");
    >out.print(dto.getSalary());
    >out.println();
    >}
    >out.flush();
    >out.close();
    > }
    And do the following settings(*OPTIONAL*) for your browser - Only in case, if the file is being blocked by IE
    ==================================================================
    http://ais-ss.usc.edu/helpdoc/main/browser/bris004b.html
    This resolves implementation of exporting table data to CSV file in 11g.
    Thanks & Regards,
    Kiran Konjeti

  • I "sent as gift" two songs to a friend. She can't find them. Are they sent to her in an email? Will they download during a sync? How can we recover the songs and get them to her iPhone?

    I "sent as gift" two songs to a friend. She can't find them. Are they sent to her in an email? Will they download during a sync? How can we recover the songs and get them to her iPhone?

    Try going to iTunes Store from the left column, then Account, then Purchase History, then Manage Gifts.

  • When I print a webpage from FF how can I make the text and images bigger?

    I am trying to print an eticket for a flight. The text on the schedule comes out too small and the UPC symbol's black lines look ganged together. I know I can view it zoomed up, but how do I make the text and images stay zoomed so they will print out that way?

    I upgraded but the problem remains. At least with Firefox I do have the option to print a selection even if it mangles the top and bottom lines. With Safari or Chrome I have no option to print a selection. At the moment the only way to get a complete copy of the selection is to copy to openoffice etc and print from there.

  • Please, I need help - How can I generate a text file with Word format?

    Hello friends at www.oracle.com ,
    is it possible for me to create a text file - that is, with TEXT_IO.fopen, and so on - that's already formatted as a Word document?
    We have a Forms program here, where it's needed to generate a text file with .RTF format, 8 centimeters margin, Times New Roman font, with size 7.
    Best regards,
    Franklin Goncalves Jr.

    Hello Shay,
    sincere thanks for your answer. And, to answer your last question, I'm using client-server model.
    Since I couldn't create this .RTF file by using built-ins like TEXT_IO, I tried to generate an .RTF file using Reports, passing the parameters DESTYPE, DESNAME and DESFORMAT, as shown below.
    add_parameter (pl_id, 'DESTYPE', text_parameter, 'FILE');
    add_parameter (pl_id, 'DESNAME', text_parameter, 'c:\franklin.rtf');
    add_parameter (pl_id, 'DESFORMAT', text_parameter, 'RTF');
    However, the just generated .RTF file is uncomprehensible. After opening the file at Microsoft Word, I can see the following message at the top of file:
    This file was created by Oracle Reports. Please view this document in Page Layout mode.
    ... and informations doesn't appear as desired.
    If I can't generate such text format by using TEXT_IO, and if generating an .RTF file through Reports shows me an incomprehensible result, how can I export the selected result to an .RTF file?
    When Reports is opened, choosing Generate to file -> RTF doesn't export anything.
    Thanks, and best regards,
    Franklin Goncalves Jr.

  • How can I export an imovie in a pc format?

    How can I export an iMovie to a format that will work on a PC?

    Easiest was is to install QuickTime for Windows (which is free from Apple) on the PC. Then any iMovie-created file will work.
    If you do not have permission to install QuickTime for Windows on your PC (this could be the case for a corporate PC, for example), then I would suggest using SHARE/EXPORT USING QUICKTIME. Choose Movie to MP4. Choose h.264 for the video codec.

  • How can we export graphs row and column wise in pdf

    Hi Experts,
    can some body tell, i have graphs in rows and columnswise in output(means side by side) after export to pdf graphs shows in rows only not like in output. but i need graphs rows and columns wise in pdf. how can i achive my requirement.please let me know steps.
    regards,
    kris

    Hi Kris,
    This is a limitation with Export to PDF. Plz. go thru' below link.
    Re: WAD Application export to PDF
    --Priya

  • How can i disable some text and item in the reports from printing

    i have a requirment to prepare a report for cheque printing on a formatted cheque paper..so i want the data should be printed in the paper not the whole thing..how can i do this...
    it is like this
    Name:- <coming from database>
    Address :-
    Rs :-
    in printing i need only the data not Name,Address and Rs headings..
    plz help me out??

    Hi,
    The usual method to influence whether an item should be printed or not is to adjust the function which lies underneath the item (simply return FALSE when you don't need it. You can also adjust the input and then return TRUE). I hope this will help you to solve your problem.
    Regards,
    Vincent ([email protected])

  • How can I export a video and keep the date?

    When I export the video and import it again, it changes the date to the date of today. It doesn't happen with the photos, only with videos.
    I changed the dates of a lot of videos and then re-imported them again, I realised I lost all my work of editing.
    Thanks,

    You can only modify the File Created date with a 3rd party application after you export it to the Desktop.  Video files do not have EXIF field that image files do so can't be modified by iPhoto or Photos.  What I do is rename the file with the date created and a brief description like:  2005-01-08-LaHanbraSpain.mov
    You can do that with one of the Automator/Applescripits that léonie has posted in the User Tips section:Photos for Mac
    Photos for Mac: Batch Change the Descriptions
    Then export the original out with the option File Name = Title

  • How can I remove accessibility text and voice over from the logon screen?

    Before I log on to my Mac, in the logon screen I get accessibility text and voice over features enabled all the time. I can remove them by pressing cmd + f5 several times until they're gone (while I'm still in the logon screen). I would like to remove them permanently so that they never appear in the logon screen.

    Can you provide an example? I've been trying (for
    example) "select translate(' test one', ascii(' '),
    'X') from dual" with no luck.
    Thank you.To replace space, you should query like this:
    select translate(' test one', chr(32), 'X') from dual instead of select translate(' test one', ascii(' '), 'X') from dual Thanks,
    Dharmesh Patel

  • How can I export a playlist and later import it, while keeping the View Options

    Related question: How can I choose the default View Options when creating new Play Lists from CD's (that I own) just imported in iTunes

    The XML file is a subset of the information in the ITL provided for 3rd party apps to query the library. iTunes doesn't make any use of the data it places there. The ITL file records all the things that aren't recorded in file tags such as ratings, play counts, playlist membership etc.
    tt2

  • TS2755 I am trying to find a message from 2012 and when I load previous messages it only goes back so far then the program quits and sends me to the home ( main) screen. How can I find the message and get around this?

    I am trying to access a message from early 2012. When I load previous messages It will only go back to oct 2012 and then the program stops and kicks my to the home page. Anyone know how I can get to the message? Thanks.

    Try Spotlight Search
    1. From any Home screen page of iPad, drag your finger down anywhere on the center of Home screen.
    2. Spotlight search will now appear and you can search for apps, texts, or any other content you'd like just as you did on previous versions of iOS.

  • How can I ditch the upgrades and get back to 3.6.x so the addons will work?

    I don't like the skin in versions 4 and 6 and Real Player and other addons won't work. How can I get back to 3.6.x to make Firefox work properly again?

    Try Spotlight Search
    1. From any Home screen page of iPad, drag your finger down anywhere on the center of Home screen.
    2. Spotlight search will now appear and you can search for apps, texts, or any other content you'd like just as you did on previous versions of iOS.

  • How can I recognise the text in only the top portion of a page?

    I am using Acrobat XI Pro and wish to recognise the text in only the top portion of a page.  The document is made of of pages of music and I only want to be able to search the title section of each page.  Recognising the text in the body of the music makes it difficult to search and find each piece.  How can I apply Text Recognition to only the top portion of each page?  And if possible how do I apply this to multiple pages simultaneously?
    The other option I considered was separating each piece into its own file.  However it is convenient for me to have all the pieces in one file if possible.

    Thanks Test Screen Name,
    Yes, "zoning".  I can stop trying now.
    Thank you

Maybe you are looking for

  • HANA Analytical View Display Data Issue

    SAP Experts, Need your kind help for the below issue, I've created an analytical view from a DSO Active Table in HANA Studio. Through IDT (Information Design Tool), when I tried to view the contents of this DSO table (AYPURDA0100) by connecting to HA

  • Using RAW in Jave Bean to store data in Oracle 8i database

    I have a question about using RAW in java program to read write data in Oracle database. Is there any sample with key information for me to refer to? Your help will be appreciated. Jane

  • My account is "disabled" how can I reactive it?

    I need help with this...

  • ERP Integrator Source Informations

    Hi All, I would like to know whether ERP Integrator will support the External feed file(from any other source system) to Hyperion Applications. ERP Integrator will support all ORACLE ERP & HR Modules, but in terms of external system likes Customized

  • Exception while accessing deployed entity bean (CMP)

    Hi PSB for the exception i get when i try to access a delpoyed entity bean (CMP). If any of you have got this exception and fixed it or have any idea of how to fix it then please reply asap. thanks. java.lang.NullPointerException at com.netscape.serv