How to avoid "images" folder in programatic exporting of.rpt files to HTML

In C#, When crystal reports is programatically exported to HTML format, the result is a folder bundled with .htm files and a folder called "images" which holds the .png files associated with these .htm.
My requirement is to have both the .htm files and the graphic files(i.e. '.png' files) in the same folder and do not want a new folder "images" to be created.
This creation of "images" folder does not happen when we manually export cryatal reports to html format.
Kindly suggest, How can we avoid the creation of this "images" folder when programatically exported to html format ?
Following is the approach used to export to HTML format.
ReportDocument mreportDocumentObject_
mreportDocumentObject = new ReportDocument();_
ExportOptions exportOptions = new ExportOptions();
exportOptions.ExportDestinationType = ExportDestinationType.DiskFile;
exportOptions.ExportFormatType = ExportFormatType.HTML40;
HTMLFormatOptions htmlFormatOptions = new HTMLFormatOptions();
htmlFormatOptions.HTMLBaseFolderName = folderName;
htmlFormatOptions.HTMLFileName = fileName;
htmlFormatOptions.HTMLEnableSeparatedPages = bHTMLEnableSeparatedPages;
htmlFormatOptions.HTMLHasPageNavigator = bHTMLHasPageNavigator;
exportOptions.FormatOptions = htmlFormatOptions;
mreportDocumentObject.Export(exportOptions);_
Edited by: GuruRaj01583 on Jul 23, 2009 1:23 PM

HI David,
I have a requirement to e-mail the exported html report. When i e-mail the attachments (i.e .htm file and .png file with in the images folder) , The reciever has to save the .htm file into a folder(say X) and with in the same folder 'X'  he has to create a 'images' folder and save the .png file into it. Only then .htm file will load the appropriate ".png".(I believe It is internally designed in .htm to load the .png files from 'images' folder). SO it becomes additional work for the user to save these attachments in folder structure as explained above.
There is another scenario to store the reports into database which requires .htm and .png to be in the same folder.
These are above scenarios where images folder is causing the problem.
I have exported the reports to other formats (i.e. xls, pdf, rtf, txt) and those work fine. Supporting .html format as part of the above requirement is where i am stuck.
I wanted to confirm whether creation of 'images' folder in CR .NET SDK IS BY DESIGN ?
If that is confirmed and if there is NO work around to get the .htm file and .png file into same folder, then we can re - think on our requirement.
Kindly confirm the above or Kindly suggest any work around if available .
Thank You.

Similar Messages

  • How to export rpt file to html in java

    Hello.
    Probably this subject appears already but after many hour searching I still canu2019t found how to export rpt file to html. To by clearly I need stream (but html will by good beginning). I won to display this html in my web application (application in IceFaces).
    I joust wno to simply example how to do this export in java.
    ps.Now I see that I should put this post in "Java Development - Crystal"

    Ok. I founded example how to export rpt file to html (but Iu2019m a little disappointed how this was made) I still need example how to export rpt file with image (or chart) to html.
    Do any one know how to do this?
    [Example how to export rpt to html|http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/d09a2df6-3d11-2c10-7fbc-9c2940cdc803]

  • HOW TO CREATE SEVERAL folder for the generation and READING FILE

    HOW TO CREATE SEVERAL folder for the generation and READING FILE WITH THE COMMAND utl_File.
    please give an example to create 3 folders or directories ...
    I appreciate your attention ...
    Reynel Martinez Salazar

    I hope this link help you.
    [http://www.adp-gmbh.ch/ora/sql/create_directory.html]
    create or replace directory exp_dir as '/tmp';
    grant read, write on directory exp_dir to eygle;
    SQL> create or replace directory UTL_FILE_DIR as '/opt/oracle/utl_file';
    Directory created.
    SQL> declare
      2    fhandle utl_file.file_type;
      3  begin
      4    fhandle := utl_file.fopen('UTL_FILE_DIR', 'example.txt', 'w');
      5    utl_file.put_line(fhandle , 'eygle test write one');
      6    utl_file.put_line(fhandle , 'eygle test write two');
      7    utl_file.fclose(fhandle);
      8  end;
      9  /
    PL/SQL procedure successfully completed.
    SQL> !
    [oracle@jumper 9.2.0]$ more /opt/oracle/utl_file/example.txt
    eygle test write one
    eygle test write two
    [oracle@jumper 9.2.0]$
    SQL> declare
      2    fhandle   utl_file.file_type;
      3    fp_buffer varchar2(4000);
      4  begin
      5    fhandle := utl_file.fopen ('UTL_FILE_DIR','example.txt', 'R');
      6 
      7    utl_file.get_line (fhandle , fp_buffer );
      8    dbms_output.put_line(fp_buffer );
      9    utl_file.get_line (fhandle , fp_buffer );
    10    dbms_output.put_line(fp_buffer );
    11    utl_file.fclose(fhandle);
    12  end;
    13  /
    eygle test write one
    eygle test write two
    PL/SQL procedure successfully completed.
    SQL> select * from dba_directories;
    OWNER                          DIRECTORY_NAME                 DIRECTORY_PATH
    SYS                            UTL_FILE_DIR                   /opt/oracle/utl_file
    SYS                            BDUMP_DIR                      /opt/oracle/admin/conner/bdump
    SYS                            EXP_DIR                        /opt/oracle/utl_file
    SQL> drop directory exp_dir;
    Directory dropped
    SQL> select * from dba_directories;
    OWNER                          DIRECTORY_NAME                 DIRECTORY_PATH
    SYS                            UTL_FILE_DIR                   /opt/oracle/utl_file
    SYS                            BDUMP_DIR                      /opt/oracle/admin/conner/bdumpRegards salim.
    Edited by: Salim Chelabi on Apr 4, 2009 4:33 PM

  • Export/Copy .rpt files from Production environment

    I'm new to Crystal Reports. I'm using Crystal Reports 10. I urgently need your help with the following:
    We inherited 140 reports from another department. The version control was not done well in that department. Now we canu2019t trust the versions on Visual Source Safe.
    We decide to pull, or export, the .rpt files from Production environment and put them in VSS.
    I understand that I can go to the CE Management Console, open each report, preview and save them in .rpt format. But I have to change the name later from a default name and save the .rpt without data. We have 140 reports. It would be very time consuming, and big risk of mistakes.
    The way we publish a report is: open the u2018Balance.rptu2019 from a local project folder, save as, click Enterprise button, and sign on the CE. From there I can see folders on Console to save the report.
    My question is: Where I can find these .rpt files in Production environment? How can I save/export all the reports together to my folder u2013 not one by one? If there is a tool to do it?
    For the example above, anybody knows where this u2018Balance.rptu2019 is saved? Once the report is published, the name seems changed in file strorage.
    Thank you very much for your help.
    Linda

    Post your question to the Business Objects Forum

  • How to avoid line break ( br ) while exporting Interactive report in Excel

    Hi,
    I have a Interative report and I am using Apex download format as CSV.
    I have defined some of the column heading in multiple line using break < br >
    when I export this into the excel sheet..the column heading contains break also..
    - Any idea how to avoid line break while exporting in excel.
    - also how to put the columns heading in BOLD when exported in excel.
    Thanks,
    Deepak

    Hi Jari,
    I tried this but still getting the
    <br>Interactive Report
    Column Attributes Heading - Employee<br>Detail AddressWhen I download the Report in CSV Format
    I am getting the heading with <br>.
    I am looking for heading as - Employee Detail Address // with no <br> tagThanks,
    Deepak

  • How to Avoid Empty Space in Excel Export , while using SubReport.

    We have a sceneraio where we have parent child relationship and we are using the SubReport Concept to map the child data by taking input parameter from Parent Report.
    The RPL/HTMl viewer , PDF works fine, but  when we export data into excel empty rows are comming.
    Could  you please suggest how can we avoid empty space in Excel Export.
    we have kept the cell (width and height ) same as SubReport Width and height.

    Hi SubhadipRoy,
    According to your description, did you use separate subreport to display the data rather than insert subreport in tablix?
    Based on my test, if we are use separate subreport to display the data in the report, when we export to Excel we will get an additional row. We can adjust the minimum gap between tablix and subreport to work around the issue. In SSRS 2012, if we paste tablix
    and subreport without empty space in report design, it will not display the additional row. You can try to put the tablix and subreport in a rectangle to resolve the issue. 
    Reference:
    http://stackoverflow.com/questions/20367960/remove-additional-column-from-exporting-to-excel-from-ssrs
    There is a screenshot for your reference:
    If the issue is persist, please elaborate the issue for further investigation.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • Address Book Images Folder = 3 gigs and 30,000 files

    Can anyone tell me why Address Book's images folder (Library/Application Support/Address Book/Images) gets to take up 3 gigs of space and contain more than 30,000 files? I like to have photos for people and companies in my address book, but I can't imagine why an address book with 354 cards would have a supporting images folder that friggin huge. Is this just bad programming on Apple's part? Using Quicklook, I can see that there are several images that are duplicated with different file names. What actions generate these duplicates? Is there a way to clean up this folder without completely dumping the contents?

    HI Paul,
    There's no way that is right.
    Your profile indicates you are running 10.4.8 but you posted in the 10.6 Snow Leopard forum? If you have updated to 10.6 please click My Settings on the right side of this page and update your profile. Thanks. (iMac G5... PowerPC)?
    Unless you have copy/pasted information for Address Book and contact information from the internet or e-mail, that's the only way I can think that could happen.
    I don't see why you can't delete those images if they aren't in use.
    If you are running 10.4, try installing the 10.4.11 combo update.
    http://www.apple.com/downloads/macosx/apple/macosx_updates/macosx10411comboupdat eppc.html
    As with any update, repair disk permissions.
    Quit any open applications/programs. Launch Disk Utility. (Applications/Utilities) Select MacintoshHD in the panel on the left, select the FirstAid tab. Click: Repair Disk Permissions. When it's finished from the Menu Bar, Quit Disk Utility and restart your Mac. If you see a long list of "messages" in the permissions window, it's ok. That can be ignored. As long as you see, "Permissions Repair Complete" when it's finished... you're done. Quit Disk Utility and restart your Mac.
    Carolyn
    Message was edited by: Carolyn Samit

  • How to avoid duplicate data while inserting from sample.dat file to table

    Hi Guys,
    We have issue with duplicate data in flat file while loading data from sample.dat file to table. How to avoid duplicate data in control file.
    Can any one help me on this.
    Thanks in advance!
    Regards,
    LKR

    No, a control file will not remove duplicate data.
    You would be better to use an external table and then remove duplicate data using SQL as you query the data to insert it to your destination table.

  • By using OID how to unzip the folder and load bunch of .csv files

    Hi All
    bellow is the my scenario.
    in my scenarion we have created FTP folder that will load the .zip files(Every Day).
    .zip files that will contain bunch of .csv file (flat files) and by using OID need to extract the .zip file and load the all .csv files into target database. source data is .csv files and target data is oracle10g. Dose it will possible by using ODI?? please suggest me...
    Thanks in Advance
    Zakeer

    Hi,
    i'm interrested on this way of reading multiple files, i tried to follow those steps but i'm getting an error while running the package:
    ODI-1226: Step vReadFile fails after 1 attempt(s).
    ODI-1236: Error while refreshing variable VOUCHER_CUSTOMER_DATA_INTEGRATION.vReadFile.
    Caused By: java.lang.NumberFormatException: For input string: "#Activity_report_name"
    the variable vReadFile can't recognize the other variable Activity_report_name.
    the refreshing query for vReadFile is :
    select     file     C1_FILE
    from      TABLE
    /*$$SNPS_START_KEYSNP$CRDWG_TABLESNP$CRTABLE_NAME=files_namesSNP$CRLOAD_FILE=C:\/files_name.txtSNP$CRFILE_FORMAT=DSNP$CRFILE_SEP_FIELD=0x0009SNP$CRFILE_SEP_LINE=0x000D0x000ASNP$CRFILE_FIRST_ROW=#Activity_report_nameSNP$CRFILE_ENC_FIELD=SNP$CRFILE_DEC_SEP=SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=fileSNP$CRTYPE_NAME=STRINGSNP$CRORDER=1SNP$CRLENGTH=50SNP$CRPRECISION=50SNP$CRACTION_ON_ERROR=0SNP$CR$$SNPS_END_KEY*/
    any suggestion plz
    regards

  • How to avoid image problem when converting to PDF?

    I had placed this yellow watch (psd file) to a AI file. Then I saved it as a PDF. When I opened the PDF file, there was an error on the image.
    Is there anyone can help to solve this problem?

    A few possibilities include stuff like...
    1.)  Image is missing and/or not "Linked".  Look at whether the image has been moved or taken from a server. The solution is to save the image to a local folder and link to it in the document.
    2.)  Color space of the document does not match the color space of the image.  Make sure the image and the document are appropriate color spaces and they match ( i.e., document = CMYK; image = CMYK ).

  • How to create a folder with standard contained folders and files in SharePoint 2013?

    I've got folders and files on my SharePoint 2013 site that form a template when I add a new folder for a customer. When I create a new folder for a customer, I want those folders and files added automaticly to that new folder. How can I do that?

    How would I go about doing this without Visual Studio? Is that possible? Need to create Folder templates.
    Every "new folder" created should have nested folders already included. 
    Company Name (New Folder 1) 
    Company Documents (1.01)
    Tax Documents (1.02)
    Bank Statements (1.03)
    Extreme novice, please give as much details as possible! I'm trying to implement SP 2013 without all the 2013 software (Visual Studios, SharePoint Designer, etc.)
    Thank you!

  • How to retreive images and xml stored in temporary internet files

    hi all,
                  I am creating an air application that has to work in offline too.so i have decided to retrieve datas it from temporary internet files(is it a rightway or anyother way to do that if so pls suggest).   I have an issues of retreiving images and xml stored in the temporary internet files of the user system ..can anybody help me and give solution for this..
    regards,
    Divya.

    What software are you using to create the website? Perhaps there is some command you can implement on the website to force the entire file to be downloaded. If you use Dreamweaver, you might ask in that forum. If you make the link an ftp link rather than a http link, you might guarantee that the file will be downloaded in its entirety, but the download location will not necessarily be in a temp folder.

  • How to take image(screenshot) of first page of any file

    Hi all,
    I am doing a project work and I need to take the image(just as screenshot) of the first page of any file so that contents of that first page can be viewed by that image .
    And finally i want to set that image as an icon for that file.
    I have used "java.awt.Robot" class for taking desktop screenshot but I am not able to find out the way how we can take image of first page of any file by just giving the url of that file even if file is closed. Can any one help me? Waiting for your kind reply..........
    Thanks in advance!!

    Please don't double-post. http://forums.sun.com/thread.jspa?threadID=5430733&tstart=0
    Are you asking whether you can take an icon from a file in the filesystem and store and subsequently display it? Conceptually, not a problem. You would want to determine the extension and then use either JNA or JNI to access the registry (or use an existing API [http://www.dzone.com/links/access_windows_registry_using_pure_java.html]) and find where that extension is associated to a file type. That is usually linked to another registry key that has the icon to display (and its path). Use a FileInputStream to get that icon on the filesystem. You can Google around for how to navigate the Registry, I'm not a Microsoft expert, but I know it can be done.
    Or are you asking whether the contents of the first "page" of an arbitrary file (Word doc, PDF, image, etc.) can be discerned and then stored and subsequently displayed? If this is the requirement, it will be very difficult to support more than a few formats. And many formats that are native to a given O/S will cause you issues.
    - Saish

  • How to avoid inserting CheckSessionFilter in to the web.xml file?

    Mobile Server modifies the web.xml during adding a .war-file to the publication. A new entry- CheckSessionFilter will be inserted inside the web.xml after uploading to the mobile server:
    ****************** inserted part **********************
    <filter>
    <filter-name>CheckSessionFilter</filter-name>
    <filter-class>oracle.lite.web.CheckSessionFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>CheckSessionFilter</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>
    ****************** inserted part **********************
    Our application has own security-concept and don’t need this additional session checking.
    How can we avoid including of CheckSessionFilter in to our web.xml?

    Don't do "add a war option" Instead, package your application using packaging wizard omitting the filter. Or, you can edit the WEB-INF/web.xml file on the mobile server after you deploy it.
    Make you update the APPLICATIONS table
    UPDATE APPLICATIONS
    SET PUBLISH_TIME = SYSDATE
    WHERE NAME = 'you application';
    You application will be uploaded to:
    STANDALONE
    ORACLE_HOME/mobile_oc4j/j2ee/application/mobileserver/applications/yourapplication/WEB-INF/web.xml
    IAS
    ORACLE_HOME/j2ee/application/mobileserver/applications/yourapplication/WEB-INF/web.xml

  • How to avoid Conformed Audio in CS5.5 for large files?

    I have been an avid hater of the conformed audio files since they were introduced. It's not like my 8 core computer can't mix audio in realtime.
    Please Adobe is there ANY way to avoid them? What about for AME? there is no realtime playback in AME so i dont need conformed audio? yet it still makes them?
    I need to drop a 322GB 14hour video clip into AME and re-encode it. what a nightmare! I have to wait for it to analyze and create a 9GB CFA file.
    There is no reason i should not be able to simply drop a file into AME, pick my preset and click go, should be as simple as that.

    Please Adobe is there ANY way to avoid them? What about for AME? there is no realtime playback in AME so i dont need conformed audio? yet it still makes them?
    Nope; nope; Premiere Pro and AME use the same engine or "Media Core" so that's why; unfortunately.
    The bottom line is that there is no way to avoid conforming for clips that "need" conforming. The more feature requests we make to end the madness, the better: Adobe Feature Request/Bug Report Form

Maybe you are looking for

  • AT&T Phone Reception is Terrible. Way to improve it?

    I know that the new iPhone comes out today. The big sell is the 3G, for better WiFi. What about the actual phone use? I don't know about anyone else, but I've had more dropped calls or "No Service" readings on this phone than any other service. I liv

  • Error while executing the function

    hi, I have a table with the following data. T_1          T_2 T_3        T_4 a.1            1 aa         ff a.1            2 ab         ff a.2            1 ba         ff a.2            2 bb         ff a.2            3 bc         ff a.2            4 bd

  • Contact Sheet plug-in - it's in the folder, but not the menu

    Hello, I'm running PS CS55.1 on Windows 7. I thought I was running in 64bit mode, but when PS starts up, it says Versiion 12.1 x32. I downloaded the plug in, but it's not showing up. In my C folder, there's Program Files >... >Adobe Photoshop CS5.1 (

  • ODBC Issue

    Dear all, I have a small issue regarding ODBC. I have installed two Oracle 10g Clients in one machine i want to connect to two different databases using these clients. When i try from SQLplus this works. But from ODBC both the Oracle ODBC drivers for

  • Remove files

    Hi experts, I am trying to remove files in our unix box where there  are nearly 10000  of files . i am using the below command, but it says no match, or too many arguments etc. rm -rf 200607?/* and rm -rf 200607/*. Please help. thanks anuroop