Html export in Pages 09?

I saw the video about posting the page to iWork.com. Does this mean there is html export in the iWork apps?
Kurt

You are really missing the point with iWeb.
I maintain a church site using iWeb. Updating and adding content is as easy as it gets. The coding is messy but my friends are seeing my pages as I intend them and I don't need to spend hours putting them together. My main job is music but I have also volunteered to maintain our web site.
For people whose job is web creation, iWeb is too limited and is not intended for this use and makes no claims to be so.It is for consumer level creation only.
That said, it is also easy to copy and paste info from a Pages or Word doc directly into an iWeb page. If it is a matter of formatting than why not use a pdf?
I believe it was wise of Apple to take the web export out of Pages. I have not seen a program designed for word processing and layout that does html export well. There is always a level of clean up that needs to be undertaken after the export so the page will display correctly.
Kurt

Similar Messages

  • Sperating pages in HTML export

    Hello,
    Anyone know if it is possible to separate pages, sections or chapters into separate HTML pages when exporting, in order not to a get a huge single webpage? Something similar to what DocBook XML editors do...
    Thanks very much!
    PS: so I hear that the HTML export is no good... but possibly for text-rich pages with few graphics it might be ok... ?

    Hello TNGS,
    welcome to the Pages Discussions. There is no way to split a document in Pages during the HTML export procedure. All you can do, is to split your document into several in Pages and export every document into a single HTML page. Than use an ordinary text editor to knitting all together to a useable website.
    I have written some manuals with Pages 1 in 2005 and one (372 pages) should be exist as an HTML manual as well, so I tried to write XSL scripts for converting one big HTML document into a functional website. Forget it. There are too many obstacles in the way to manage this in an adequate time.

  • Export Web page in html format -- Safari

    Outlook Express provided an option to export a page as html (graphics and all) and I can then open that page as html and covert it to a .doc file. That's on PC. I use that option to tell my Web guru what changes I'd like her to make on a specific page.
    Safari does not seem to offer that option. What I have there is "Web Archive" and "Page Source" and I can't do anything with that--or can I?--to get it properly formatted--just as it appears on Safari in Word.
    Any suggestions?

    Outlook Express provided an option to export a page as html (graphics and all) and I can then open that page as html and covert it to a .doc file. That's on PC. I use that option to tell my Web guru what changes I'd like her to make on a specific page.
    Safari does not seem to offer that option. What I have there is "Web Archive" and "Page Source" and I can't do anything with that--or can I?--to get it properly formatted--just as it appears on Safari in Word.
    Any suggestions?

  • Embed an Exported Muse Page Using "Insert HTML"?

    Hello All,
    I'd like to export a Muse page to HTML, then embed that entire page into another Muse page using Insert HTML. I've done some experimenting and haven't yet gotten it to work.
    I'm familiar with embedding html in Muse, including the linking of external css stylesheets and js libraries, and I'm also reasonably skilled in post-editing my Muse pages in Dreamweaver. But this has me stumped.
    Anyone have any experience to share? Thanks!
    bart

    Hi Bart,
    I am not sure why you want to first export the page and then embed it as HTML in another Muse page. However, you can copy all the content from a page and use the "paste in place" option from Edit menu and all the content will be placed as it is on the source page.
    Regards,
    Aish

  • Exporting My Pages to HTML?

    How do I export the pages I create to HTML so that I can upload these from another program such as Homestead? Please advise.

    Matt ~ Welcome to the discussions. To export your iWeb site's HTML, in the Site Publishing Settings choose +Publish to: Local Folder+. Here's a video tutorial briefly showing that option:
    http://www.apple.com/findouthow/web/#ftp

  • How to Display Page Numbers in ALV Report HTML End of page Event

    hai Gurus
    Greetings
    Please tell me how to get current page noumber and total number of pages in ALV Report (in HTML End of Page Event)
    i tried with sy-pagno system field but it is not working
    so please guide me
    Thanks
    Ramesh

    check below code....
    *Work area for Layout
         gf_layout       type  slis_layout_alv,
    *Work area for HEADER FOOTER    
         gf_header type slis_listheader,
    *Work area for Field catalogue    
         gf_fieldcat     type  slis_fieldcat_alv.
         it_top_page type slis_t_listheader,
    *Internal table for Field catalogue    
         it_fcat      type slis_t_fieldcat_alv.
    perform:fill_layout,
                  prepare_header,
                  field_catlog,
                  display_report.
         Form  fill_layout
    form fill_layout .
      gf_layout-colwidth_optimize = 'X'.
    endform.                    " fill_layout
         Form  field_catlog
    form field_catlog .
      data : lf_fcat type line of slis_t_fieldcat_alv,
             l_cnt type i.
      clear : lf_fcat, l_cnt.
    Employee Number
      add 1 to l_cnt.
      lf_fcat-fieldname   = 'EMPLID'.
      lf_fcat-tabname     = 'IT_EMPLOYEE'.
      lf_fcat-col_pos     = l_cnt.
      lf_fcat-emphasize   = 'X'.
      lf_fcat-outputlen   = 8.
      lf_fcat-seltext_l   = text-003.
      append lf_fcat to it_fcat.
      clear  lf_fcat.
    *Last Name
      add 1 to l_cnt.
      lf_fcat-fieldname   = 'USERNAME'.
      lf_fcat-tabname     = 'IT_EMPLOYEE'.
      lf_fcat-col_pos     = l_cnt.
      lf_fcat-emphasize   = 'X'.
      lf_fcat-outputlen   = 20.
      lf_fcat-seltext_l   = text-004.
      append lf_fcat to it_fcat.
    *First Name
      add 1 to l_cnt.
      lf_fcat-fieldname   = 'EMPMAIL'.
      lf_fcat-tabname     = 'IT_EMPLOYEE'.
      lf_fcat-col_pos     = l_cnt.
      lf_fcat-emphasize   = 'X'.
      lf_fcat-outputlen   = 40.
      lf_fcat-seltext_l   = text-005.
      append lf_fcat to it_fcat.
    *Known As
      clear  lf_fcat.
      add 1 to l_cnt.
      lf_fcat-fieldname   = 'EMPSTATUS'.
      lf_fcat-tabname     = 'IT_EMPLOYEE'.
      lf_fcat-col_pos     = l_cnt.
      lf_fcat-emphasize   = 'X'.
      lf_fcat-outputlen   = 10.
      lf_fcat-seltext_l   = text-006.
      append lf_fcat to it_fcat.
      clear  lf_fcat.
    *System UserID
      add 1 to l_cnt.
      lf_fcat-fieldname   = 'COSTCENTER'.
      lf_fcat-tabname     = 'IT_EMPLOYEE'.
      lf_fcat-col_pos     = l_cnt.
      lf_fcat-emphasize   = 'X'.
      lf_fcat-outputlen   = 10.
      lf_fcat-seltext_l   = text-007.
      append lf_fcat to it_fcat.
      clear  lf_fcat.
    *EMail ID
      add 1 to l_cnt.
      lf_fcat-fieldname   = 'DEPTDESC'.
      lf_fcat-tabname     = 'IT_EMPLOYEE'.
      lf_fcat-col_pos     = l_cnt.
      lf_fcat-emphasize   = 'X'.
      lf_fcat-outputlen   = 8.
      lf_fcat-seltext_l   = text-008.
      append lf_fcat to it_fcat.
      clear  lf_fcat.
    *Employment Status
      add 1 to l_cnt.
      lf_fcat-fieldname   = 'LOC'.
      lf_fcat-tabname     = 'IT_EMPLOYEE'.
      lf_fcat-col_pos     = l_cnt.
      lf_fcat-emphasize   = 'X'.
      lf_fcat-outputlen   = 20.
      lf_fcat-seltext_l   = text-009.
      append lf_fcat to it_fcat.
      clear  lf_fcat.
    *Personnel Area
      add 1 to l_cnt.
      lf_fcat-fieldname   = 'TITLE'.
      lf_fcat-tabname     = 'IT_EMPLOYEE'.
      lf_fcat-col_pos     = l_cnt.
      lf_fcat-emphasize   = 'X'.
      lf_fcat-outputlen   = 40.
      lf_fcat-seltext_l   = text-010.
      append lf_fcat to it_fcat.
      clear  lf_fcat.
    *Personnel Area Text
      clear  lf_fcat.
      add 1 to l_cnt.
      lf_fcat-fieldname   = 'HDATE'.
      lf_fcat-tabname     = 'IT_EMPLOYEE'.
      lf_fcat-col_pos     = l_cnt.
      lf_fcat-emphasize   = 'X'.
      lf_fcat-outputlen   = 10.
      lf_fcat-seltext_l   = text-011.
      append lf_fcat to it_fcat.
      clear  lf_fcat.
    *Country Grouping text
      add 1 to l_cnt.
      lf_fcat-fieldname   = 'MGRID'.
      lf_fcat-tabname     = 'IT_EMPLOYEE'.
      lf_fcat-col_pos     = l_cnt.
      lf_fcat-emphasize   = 'X'.
      lf_fcat-outputlen   = 10.
      lf_fcat-seltext_l   = text-012.
      append lf_fcat to it_fcat.
      clear  lf_fcat.
    *Cost Center
      add 1 to l_cnt.
      lf_fcat-fieldname   = 'MGRNAME'.
      lf_fcat-tabname     = 'IT_EMPLOYEE'.
      lf_fcat-col_pos     = l_cnt.
      lf_fcat-emphasize   = 'X'.
      lf_fcat-outputlen   = 20.
      lf_fcat-seltext_l   = text-013.
      append lf_fcat to it_fcat.
      clear  lf_fcat.
    *Employee Group
      add 1 to l_cnt.
      lf_fcat-fieldname   = 'MGMAIL'.
      lf_fcat-tabname     = 'IT_EMPLOYEE'.
      lf_fcat-col_pos     = l_cnt.
      lf_fcat-emphasize   = 'X'.
      lf_fcat-outputlen   = 40.
      lf_fcat-seltext_l   = text-014.
      append lf_fcat to it_fcat.
      clear  lf_fcat.
    *Organizational Unit
      add 1 to l_cnt.
      lf_fcat-fieldname   = 'DIV'.
      lf_fcat-tabname     = 'IT_EMPLOYEE'.
      lf_fcat-col_pos     = l_cnt.
      lf_fcat-emphasize   = 'X'.
      lf_fcat-outputlen   = 25.
      lf_fcat-seltext_l   = text-015.
      append lf_fcat to it_fcat.
      clear  lf_fcat.
    *Supervisor
      add 1 to l_cnt.
      lf_fcat-fieldname   = 'BUSUNIT'.
      lf_fcat-tabname     = 'IT_EMPLOYEE'.
      lf_fcat-col_pos     = l_cnt.
      lf_fcat-emphasize   = 'X'.
      lf_fcat-outputlen   = 25.
      lf_fcat-seltext_l   = text-016.
      append lf_fcat to it_fcat.
      clear  lf_fcat.
    endform.                    " field_catlog
         Form  display_report
    form display_report .
      data : l_repid type sy-repid.
      clear l_repid.
      l_repid = sy-repid.
      call function 'REUSE_ALV_GRID_DISPLAY'
        exporting
          i_callback_program          = l_repid
          is_layout                   = gf_layout
          it_fieldcat                 = it_fcat
          i_callback_top_of_page      = 'TOP-OF-PAGE'
        tables
          t_outtab           = it_employee
        exceptions
          program_error      = 1
          others             = 2.
    endform.                    " display_report
         Form  PREPARE_HEADER
    form prepare_header.
      data:l_header1(20),
           l_header2(60).
      data:l_header3(20),
         l_header4(60).
      l_header1       = 'Met Life Census Data'.
      l_header2+40(8) = 'Run Date'.
      write sy-datum to l_header2+50(10).
    header
      gf_header-typ  = 'S'.
      gf_header-key  = l_header1.
      gf_header-info = l_header2.
      append gf_header to it_top_page.
      clear gf_header.
    endform.                    " PREPARE_HEADER
    form top-of-page.
      call function 'REUSE_ALV_COMMENTARY_WRITE'
        exporting
          it_list_commentary = it_top_page.
    endform.                    "TOP-OF-PAGE
    *& Form end_of_list_html
    output at the end of the list - not in printed output *
    FORM END_OF_LIST_HTML USING END TYPE REF TO CL_DD_DOCUMENT.
    DATA: LS_TEXT TYPE SDYDO_TEXT_ELEMENT,
    L_GRID TYPE REF TO CL_GUI_ALV_GRID,
    F(14) TYPE C VALUE 'SET_ROW_HEIGHT'.
    LS_TEXT+0(20) = 'Total Employees'.
    LS_TEXT+40(10) = g_count.
    CALL METHOD END->ADD_TEXT
    EXPORTING
    TEXT = LS_TEXT
    SAP_EMPHASIS = 'STRONG'.
    *adds new line (start new line)
    CALL METHOD END->NEW_LINE.
    CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
    IMPORTING
    e_grid = l_grid.
    CALL METHOD l_grid->parent->parent->(f)
    EXPORTING
    id = 3
    height = 10.
    ENDFORM.

  • Export single-page pdfs with page name

    I've been looking for a script that:
    - exports every page of an indesign file to a seperate single-page pdf (or other filetypes)
    - names the pdf with the name of a page -> this is the hard part to find
    The reason i could use it: i have a 200+ page file with productspecs. I would like to export every page with the correct productname. (extracting pdfs in acrobat is not a problem, but then i have to manually rename every file)
    I'm not sure how to name the pages, as it's not a function in indesign. Ideal would be to be able to "tell" indesign: this textframe = the pagename, so it wouldn't be necessary to label the page seperately.
    I'm not a scripter. I searched the forum and found some info on this already, but not a working script including automatic pagenaming.
    I did found an old post where someone points to such a script, but i can't find it:
    http://www.techplex.net/postsm40018_possible-to-name-pages.html#post40018
    Did anyone ever made/found/used such a script?
    (btw, a similar script for illustrator artboards would be very useful too!)
    Any help appreciated!

    scott zanelli made one years ago. does a fantastic job.
    http://indesignsecrets.com/page-exporter-utility-peu-5-script-updated-for-cs3.php
    Loic Aigon has written one...
    http://www.loicaigon.com/blog/?p=876
    as for illustrator artboards... don't know - have a look on the illustrator scripting forum.

  • Add custom html / scripts to html export

    Hello all,
    I'm looking for a way to add some code into each page after export file to html.
    the code is something like:
    <script type="text/javascript">
      parent.pageVisited[1] = 1;
      </script>
    Is there an easy way to add to each page when exporting file to html?
    Thanks
    Omer

    I don't believe that the HTML exporter is open source, so you cannot alter its behaviour. What you can do is pick up the HTML file created by a Javascript as a textstream and read it line by line in a loop. Search each line for the specific end tag in the HTML line and insert your lines after that position. Finish of by replicating the other remaining lines. Save the textstream.
    This can be done in every programming language in fact. Hope this helped.

  • Export multiple page indd as individual pdfs.

    I've been racking my brain on this.
    I have a very long indd that needs to be sent as hirez pdfs to the printer (don't ask me why, I don't know). Each page needs to be it's own pdf. I know I can export each page individually, or export it as one .pdf and extract each page manually, but is there a way/script out there to export each page individually as a pdf automatically?
    Thanks!

    Hi,
    take a look at the good old ExportEachPageAsPDF.js of the tutorial 'Working with Documents' in http://www.hilfdirselbst.ch/foren/Einzel-PDFs_exportieren_P193960.html#193960
    Martin Fischer

  • RichEditableText: export().equals() and HTML export

    1. How can I find out that two richEditableText.export() are equal?
    At least the order of the attributes in the TextFlow element is random which means that exported strings cannot be compared directly. Take for example the trunk.mxml from http://bugs.adobe.com/jira/browse/SDK-21836 and compile+run it several times and you see the different order of attributes. Is there a utility method somewhere to compare two exports? (BTW releasing the source of TLF would ease these kind of bug hunting...)
    I know how to use richEditableText.textFlow.generation but this only indicates changes in the current component.
    2. Is supporting html import/export on the roadmap?
    (This question got burried in the information stream... http://forums.adobe.com/message/2042067#2042067)
    Gordon Smith: TLF's TextFilter class supports importers and exporters for HTML_FORMAT, but I haven't tried them and don't know how robust they are.
    I think the HTML export in TLF is not yet stable. The thing is that once
    it is stable there is pretty much no way to insert the import
    functionality into RichEditableText without rewriting most of the
    component. In my opinion, it should be either integrated into
    RichEditableText even at this early stage or RichEditableText should be
    refactored to allow extending it in an easier way.
    Thanks for any hints,
    Marc

    Hi Abhishek,
    Nice conversation I do not expect that TLF covers the full HTML standard. After all, browsers are too good when it comes to HTML rendering...
    with varying degrees of fidelity.
    I remember reading in the TLF forum, that HTML import/export was experimental. That's why I wrote that HTML is not ready for prime time. Also your comment shows that HTML is a poor choice from a Flex perspective. Unfortunately, it's unclear what varying degrees of fidelity really means as I'm not aware of any precise documentation or code.
    Concerning your idea about passing around a (mutable) instance of TextFlow, I'm not a great fan. The power of markup is besides others, that it is a comparable description of content and format. So I definitely prefer an equal function. If this function doesn't make it into the Flex 4 release, I  reluctantly add to each TLF markup a dirty flag which is based on TextFlow.generation.
    As mentioned before, I prefer TLF could export all content and formatting into HTML compliant format. There are many reasons why HTML is a huge benefit over any new, widely undocumented format (this is not specific to TLF or FXG). A few reasons that come to my mind:
    - Server side: Apache Lucene has a battle-proof extractor. With TLF or FXG, I had to write and configure my own.
    - Server side: Extract and modify links in content. This is obviously very easy with HTML as there are age-old libs available.
    - Flash Player: Compare two TLF markups. There might be also no actionscript lib for HTML available. But I'd happily start a project for HTML but not for a new format without underlining code and thorough doc.
    - HTTP communication: what's the mime type of TLF or FXG?
    - Every developer knows HTML, TLF/FXG must be learned. I regard this learning as a high barrier as TLF does not seem to be a big step forward compared to HTML.
    Note that I don't prefer HTML because it is an "open standard". It's because the whole world knows HTML and that brings a much higher engineering efficiency (and that's maybe due to the open standard). If not all information of TLF can be export HTML, it's a pity but just document it.
    Looking forward to your thoughts/comments,
    Marc
    abhishek.g wrote: Hi Marc,
    Thanks for your reply.
    TLF supports many different markup formats (TLF, FXG, Plain text, HTML) with varying degrees of fidelity. It would simply not do to compare HTML because there isn't a 1:1 correspondence between TLF and HTML capabilities. From that perspective, TLF format would be your best bet though I realize there is the problem of inconsistent attribute order.
    Perhaps your scenario is better addressed by having utilities to compare TextFlow instances rather than comparing corresponding markup (this needs additional thought).
    As for HTML import/export, it is obviously be beyond TLF's scope to implement the full HTML standard. The current implementation is loosely based on the HTML capabilities of flash.text.TextField (see htmlText property), which itself is a small subset of the standard, and deviates from it in some ways. When you say HTML support is not ready for prime time, are you referring to this limited scope, or have you encountered specific bugs in the implementation? If the former, I'd like to know what your expectations are. If the latter, please report them.
    Thanks
    Abhishek
    (Adobe Systems Inc.)
    This message was sent to: faindu
    To post a reply to the thread message, either reply to this email or visit the message page:
    http://forums.adobe.com/message/2059470#2059470
    --end--
    mail transfer stalled...

  • How do you edit the HTML export template?

    Fireworks HTML and images export does not render correctly when viewing in IE9 due to the default browser padding values.  I'm a little disappointed the Fireworks dev team didn't see this coming and add some code to prevent this rendering issue.  Anyway... I've come up with a work around to edit the html pages by adding my own style sheet which includes the yahoo CSS reset styles to take care of this problem and it works great.  The only problem is, adding it to every page of a multiple page export is tedious.  So, I'd like to directly edit the HTML template fireworks uses to generate the html in the head of each page it exports so it includes a reference to my own external style sheet.  I just need to know where/if I can make this change.  Any help would be greatly appreciated!
    Thanks,
    Greg

    I've never tried it, but the HTML Code folder inside Fireworks' application Configuration folder contains a number of items related to HTML Export. (Incidentally, I'd never mess with this folder without first saving a backup, and even then it's at your own risk.)
    There's no simple HTML template file here, but there are files like "DreamweaverLibrary.htt", which is a "hypertext template" file that looks a lot like JavaScript to me. So if you're comfortable modifying JavaScript, then you could take a crack at it. I'm not sure, but it looks like this library file might govern what gets written into the head of an exported HTML document. If not, you could try a different one.
    Another, less invasive approach might be to do some kind of Find and Replace on the exported HTML documents—using Dreamweaver or a text editor.

  • HTML Export Content Ordering Problem

    I've inherited a collection of InDesign files and PDF files that have been exported from them.  I'd like to convert everything to HTML.  The InDesign export process is working fine for most files, but for a few, I am getting my content's order re-arranged.  One problem file is a large file that contains a series of letters.  The output file contains 3 DIVs within the BODY tag.  The first one contains the (Correct) first page, then the second two DIVs each contains a seemingly arbitrary collection of these letters with "jumps" in the ordering (10 letters might be in the correct order, then we "jump" to a previous set of letters or a much latter set of letters).  The PDF export doesn't have this problem.  I'm a newbie to InDesign. Thanks for any ideas for where I should look for the source of this problem.

    Hi Devin,
    For HTML export there are three modes for ordering content. This option is avilable in Content order section in General Tab of HTML export:
    1. Based on Page Layout : This is the default one and the one you are using right now. The objects appear from the top left and the appearance may not match ID in this case.
    2. Based on Articles Panel: Here you put your content in articles and then depending on the order the objects appear in Articles, the same order applies to HTML export.
    Please refer this link to get a better idea about how Articles Panel works:
    http://help.adobe.com/en_US/indesign/cs/using/WS8c5bc4f64c7a4a3d78b7a8b312dbccaf5b2-8000.h tml
    (this is the one you should be using )
    3. Based on XML structure: This applies in case you have tagged content and wish to make xml structure as the reading order.
    Thanks,
    Pooja

  • Keynote 8 (4.04) HTML export problems.

    The Navigator in my HTML exports works fine in Safari, but all of the hyperlinks are dead...whether to a next slide or a webpage. Also, any "MouseUp" click annoyingly goes to the next slide; can I disable this?
    Grateful for any help.

    Welcome to the forum.
    I first want to commend you on a well-written, and detailed post. Wish that others would take a page from your book.
    Now, the first thing that I notice is the lack of free space on your system (C:\) drive. If your Virtual Memory is dynamically managed (the default), you are likely to be running out of space for it. At least you have 2 physical HDD's, which I feel is the absolute minimum for video editing. I would look into cleaning out some "stuff" on your C:\, to get more working room there. The general feeling is that 30GB of defragmented free space is the min., but I lean towards ~ 50GB, with a statically managed Page File. With 4GB of physical RAM, I would look to a Page File of about 2 - 2.5x the RAM, or 6 - 10 GB. The static management will do two things: take the Page File management overhead off of the OS and also will locate the Page File in the same area of the HDD at boot up. You might want to experiment with placing it on your D:\, as separating it out from the C:\ can result in performance gains on many systems. This needs to be tested, however. I have my Page File on an otherwise pretty empty D:\, but have many more physical HDD's for media, for Projects, for Exported files, etc. My Projects and their Scratch Disks are separately located too, so the entire workload is spread over a half-dozen HDD's.
    Now, I have two articles, that might be useful. The first is to set up a system for video editing, and is HERE. The second is for finding clues, when a program, or system crashes. It is located HERE. There are also several good articles in the FAQ sub-forum, on optimizing both one's system and the PrE program. I highly recommend those.
    Hope that something there is helpful, and good luck,
    Hunt

  • Print, Export and Page Navigation Buttons in the Report

    When I view a report through CR4E, the generated report has 3 buttons namely Print, Export and Page Navigation buttons. But when I click on either of the buttons I get a &#39;null pointer exception&#39;. This is a critical error as I am unable to navigate past the first page. Do I have to add code to these buttons? If not, why am I getting an error? Kindly solve my problem as soon as possible.

    <p>Looking at your code it appears that you are storing the ReportSource in session prior to passing in the ResultSet. This will create a problem when a postback is made on  the viewer page (which all of the viewer actions do). If you look at the sample code which is generated when you use the JSP Page Wizard you will notice that the ResultSet is passed to the ReportClientDocument object prior to it being stored in session. Then, when the page is called again this object is retrieved and the ReportSource is used by the viewer. You can quickly run the test using one of our sample reports to see what I am talking about. The code below was generated using the Consolidated Balance Sheet.rpt and did not experience any problems doing any of the viewer actions.</p><%@page import="com.businessobjects.samples.JRCHelperSample,<br />com.crystaldecisions.report.web.viewer.CrystalReportViewer,<br />com.crystaldecisions.reports.sdk.ReportClientDocument,<br />com.crystaldecisions.sdk.occa.report.application.OpenReportOptions,<br />com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase,<br />com.crystaldecisions.sdk.occa.report.reportsource.IReportSource,<br />java.sql.Connection,<br />java.sql.DriverManager,<br />java.sql.ResultSet,<br />java.sql.SQLException,<br />java.sql.Statement"%><%<br /><br /><br />    try {<br /><br />        String reportName = "Sample Reports/Consolidated Balance Sheet.rpt";<br />        ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute(reportName);<br /><br />        if (clientDoc == null) {<br /><br />            clientDoc = new ReportClientDocument();<br />            <br />            // Open report<br />            clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);<br /><br />  <br />            {<br />                // **** POPULATE MAIN REPORT ****<br />                {<br />                     // Connection Info for fetching the resultSet<br />                    String connectStr = "jdbc:derby:classpath:/Xtreme";<br />                    String driverName = "org.apache.derby.jdbc.EmbeddedDriver";<br />                    String userName = "dbuser";        // TODO: Fill in database user<br />                    String password = "dbpassword";    // TODO: Fill in valid password<br /><br />                    String query = "SELECT CUSTOMER_NAME FROM APP.CUSTOMER WHERE COUNTRY = &#39;Australia&#39;";<br /><br />                    <br />                    String tableAlias = "FINANCIALS";        // TODO: Change to correct table alias<br /><br />                     <br />                    JRCHelperSample.passResultSet(clientDoc, fetchResultSet(driverName, connectStr, userName, password, query),<br />                        tableAlias, "");<br />                }<br /><br /><br />            }<br />        <br />            // Store the report document in session<br />            session.setAttribute(reportName, clientDoc);<br /><br />        }<br /><br /><br />            {<br />                // Create the CrystalReportViewer object<br />                CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();<br /><br />                //    set the reportsource property of the viewer<br />                IReportSource reportSource = clientDoc.getReportSource();                <br />                crystalReportPageViewer.setReportSource(reportSource);<br /><br />                // set viewer attributes<br />                crystalReportPageViewer.setOwnPage(true);<br />                crystalReportPageViewer.setOwnForm(true);<br /><br />                // Process the report<br />                crystalReportPageViewer.processHttpRequest(request, response, application, null); <br /><br />            }<br />            <br /><br />    } catch (ReportSDKExceptionBase e) {<br />        out.println(e);<br />    } <br />    <br />%><%!<br />// Simple utility function for obtaining result sets that will be pushed into the report.  <br />// This is just standard querying of a Java result set and does NOT involve any <br />// Crystal JRC SDK functions. <br /><br />    private static ResultSet fetchResultSet(String driverName,<br />            String connectStr, String userName, String password, String query) throws SQLException, ClassNotFoundException {<br /><br />        //Load JDBC driver for the database that will be queried    <br />        Class.forName(driverName);<br /><br />        Connection connection = DriverManager.getConnection(connectStr, userName, password);<br />        Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);<br /><br />        //Execute query and return result sets<br />        return statement.executeQuery(query);<br /><br />}%><p>Try using the code generated from the wizard to see if it works for you as well. </p><p>Regards,<br />Sean Johnson (CR4E Product Manager) </p>

  • Can I use preview to export multiple page PDF as jpegs?

    Using Preview, I export multiple page PDF as jpeg and results are the first page only as jpeg. Can I use preview to export multiple page PDF as jpeg for every page?

    Automator is great for this if you need to export many pages to JPG, or just have to do this often.
    Two other quick and dirty way sto get it done:
    (1) Enable thumbnail view, click on the ONE PAGE you want to convert to jpg, then choose "export." If you choose more than one page, only the first will get exported to jpg.
    (2) Create a copy of the file, delete all the pages except the one you want to export to JPG, and export that page. You may be able to "undo" the delete, get all your pages back again, and re-delete all but the one you want to export, etc. I would not recommend doing this on the original version of the file because of Preview's autosave so-called "feature."

Maybe you are looking for