JasperReport as Image

Dear all,
I would like to display dynamically my generated jasper report (As image or Html)in my JSP.
I am able to create jasper report and save in my local directory as PDF and HTML.
So my queries.
Case 1, Can i create my jasper report as Image. Ones image is generated i can use JRHtmlExporter .
Case 2, I want to generate jasper report as pdf if user need to download.
Shall i create a pdf in temp tomcat directory Or Is it better to store pdf in my database and retrieve it...
Any insight will be appriciated.
Regards
Baiju

Hi,
I am generating the pdf report using spring and hibernate. I am using the following code.
System.out.println("in PDF block");
                    Map parameters = new HashMap();
                    parameters.put("Report_Title", "User profiles");                    
                    JasperDesign jasperDesign = JRXmlLoader.load("D:\\workspace\\dynamicreports\\WebContent\\WEB-INF\\pdf-report.xml");
                    System.out.println("loaded the xml file for pdf report");
                    //System.out.println("Report Stream is"+reportStream);          
                    System.out.println("jasper design"+jasperDesign);
                    //JasperDesign jasperDesign = JasperManager.loadXmlDesign(reportStream);
                    System.out.println("after jasper design");                    
                    JasperReport jasperReport = JasperManager.compileReport(jasperDesign);                    
                    System.out.println("after compiling "+jasperReport.toString());
                    JRBeanCollectionDataSource ds = new JRBeanCollectionDataSource(results);          
                    System.out.println("AFter datasource:"+ds.toString());          
                    JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters,ds);          
                    System.out.println("AFter Jasper Print:"+jasperPrint.toString());
                    JasperExportManager.exportReportToPdfFile(jasperPrint, "D:\\workspace\\.metadata\\.plugins\\org.eclipse.wst.server.core\\tmp0\\webapps\\dynamicreports\\WEB-INF\\jsp\\report.pdf");
                    System.out.println("exported the html report");
                    }catch(JRException jre){
                    System.out.println(jre);
                    jre.printStackTrace();
I get the pdf report saved in the hard disk. I want to display the stored pdf report in a jsp page.
Please help me.
Thanks in advance.

Similar Messages

  • JasperReports tutorial and Image Hiper Link list

    Hi,
    I have a problem with jasperreports. I followed the tutorial and created a list of hiperlinks on a page with 10 image hiperlinks to call 10 diferent reports with diferent parameters. The problem is that it seems that the action queue is never cleared after call facesContest.responseComplete() on getApplicationBean1().jasperReport(....).
    In debug mode if i click an hiperlink the action is invoked with the last actions clicked before. Example:
    - click on hiperlink1 -> hiperlink1Action invoked
    - click on hiperlink2 -> hiperlink1Action and hiperlink2Action invoked
    - click on hiperlink3 -> hiperlink1Action and hiperlink2Action and hiperlink3Action invoked
    The result is wrong report generated.
    Why is this happening?

    Thank you for the answer. Apple support has been working on this question for several days.
    I don't think they see any difference between the two tabs as I didn't think there was any seperation and the arrow was the place to clic on the price.
    What would it take to get your statment added to the iTune tutorial?
    For that matter what would it take to get actual tutorials listed under the heading Tutorials listed at the bottom of most iTunes screens. If you clic on the heading Tutorials at the bottom of iTunes pages it lists ads not tutorials.
    Thanks again for your help.

  • Problem in drawing image on the fly using jsp

    I have been searching the forum and web for the problem but in vain. I have wrote a jsp which creates an image on the fly from the data selected from the database. But after the image is drawn, it throws an IllegalStateException. The offending code is at the time of releasePageContext() method of the compiled jsp. I am using the following code in jsp to display the image.
    BufferedImage bi = obj.getBufferedImage();
    javax.imageio.ImageIO.write(bi,"png",response.getOutputStream());
    I even tried to do the same with servlet, but the problem is that when I am using forward action in jsp I am getting the image but the control is in the servlet and if I am including the servlet, I am getting junk characters instead of image. I have set the content type in servlet and also in jsp.
    Thank you in advance.

    Hi all,
    I've developed a web application using glassfish server... my database is postgresql.... i try to generate a report using Jasper Reports.... i've succesfully developed the report template..... My problem when ever i try to generate a report it gets the data from the back end.... and throws the following error.....
    StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
    java.lang.IllegalStateException: getOutputStream() has already been called for this response
    at org.apache.coyote.tomcat5.CoyoteResponse.getWriter(CoyoteResponse.java:652)
    at org.apache.coyote.tomcat5.CoyoteResponseFacade.getWriter(CoyoteResponseFacade.java:196)
    at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:149)
    at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:142)
    at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:216)
    at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:134)
    at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:89)
    at org.apache.jsp.GenerateBirthCertificate_jsp._jspService(GenerateBirthCertificate_jsp.java:149)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:353)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:409)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:317)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    i've written my code in jsp.... My code is....
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@ page language="java" import="java.io.*, net.sf.jasperreports.engine.*, java.sql.*, java.util.*" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>CDAC Portal</title>
    </head>
    <body>
    <%
    try {
    Connection con=null;
    String query="";
    String regNo="";
    regNo=request.getParameter("regNo");
    regNo = regNo.toUpperCase();
    out.println("Registration No :"+regNo);
    Class.forName("org.postgresql.Driver");
    con = DriverManager.getConnection("jdbc:postgresql://192.168.31.79:5432/Municipality","postgres","");
    System.out.println("connected succefully");
    ServletContext context = this.getServletConfig().getServletContext();
    File reportFile = new File(context.getRealPath("/reports/birth_cert.jasper"));
    query="select * from birth_details where regn_unit='"+regNo+"'";
    Map parameters = new HashMap();
    parameters.put("regNo",""+regNo);
    parameters.put("query",""+query);
    byte[] bytes = null;
    try {               
    bytes = JasperRunManager.runReportToPdf(reportFile.getPath(), parameters, con);
    response.setContentType("application/pdf");
    response.setContentLength(bytes.length);
    ServletOutputStream ouputStream = response.getOutputStream();
    ouputStream.write(bytes, 0, bytes.length);
    ouputStream.flush();
    ouputStream.close();
    } catch (JRException e) {
    System.out.println("Error : "+e);
    con.close();
    } catch(Exception exc) {
    System.out.println("Connection pool error :"+exc.toString());
    %>
    </body>
    </html>
    can anyone help me hw to solve this problem....
    Thanks in advance
    R Vijay,
    Project Engineer,
    CDAC, Chennai.
    India
    [email protected]
    [email protected]

  • How to send existing email html including images

    I used the JasperReport to generate a report in html formats.
    The html page(containg the data) has a lot of images.
    I need to send the html report by emails with the images saved in local drive.
    So I used MineMulitipart way, but in existing ways the html part is just a few lines, you can define yourself.
    For my stiuation, the html is already there and very complicated,contain mulitiple images.
    How do I solve the problem still using MineMulitipart?
    Thanks!

    you basically have 2 options for images in HTML emails:
    Option 1) you can embed them as file attachments and reference them with no path (only the file name) in the img tag. This is good because the recipient will see the images even if he does not have an internet connection. But this is bad for several reasons: Each email will be large since it contains several attachments, thus large traffic on your SMTP server if the volume is high. Also, many email clients might not support this configuration. I would not normally recommend this option for these reasons, but sometimes this method can be prefferable if the recipient's email client is known to support it (Outlook, Outlook Express), and if the recipient is behind a firewall and does not have internet access.
    Option 2) the other, (preferrable) option is to serve the images on a publicly available web server, preferrably on port 80. Reference each image with an absolute URL to the file.
    Also note you should attach a .txt Multipart for those email clients which do not support HTML. (pine or elm users stuck in 1987). Note there are issues with mail gateways, as well as different levels of HTML support within the email client itself... mail clients won't support JavaScript either.
    ...good luck!

  • MIME Multipart/related to embed images in html files - Servlet

    Hello,
    My goal is to embed images in html/xhtml files to decrease latency when using slow networks. Think about mobile phones, if I have 10 images in one page, I will have 11 requests/responses to get the whole page.
    The solution would be to embed all images using Content-type multipart/related, so I have one request to the whole pack.
    How to do that in java? I mean, I need to set the content-type and build all parts encoding the images to base64.
    I tried JavaMail API, there I can build messages like this and instead of send an e-mail, I can write:
    myMimeMultipart.writeTo(response.getOutputStream());
    The problem is: I am getting everything as text in my browser, including the MIME headers of each part. Another think is that the first header (the main one) doesn't appear too.
    Any thoughts/other ideas?
    Thanks in advance,
    Andr� Carlucci

    If memory serves me right, I believe in the Servlet spec you have access to the Response object. You "should" be able to set any headers you need there. In addition, you can get the output streams just as you described.
    I did a similar thing, although slightly modified, to output dynamically-generated XLS (Excel Spreadsheet) files using a reporting engine called JasperReports. It wasn't a multipart response, however, so you may need to figure out how to handle that part of it, but in my case I set the mime-type header, then grabbed the output and started writing my XLS file too it. Once done, you close the streams and return the response. Worked perfect.

  • Unable to run jasperreport using java application

    I have created a report using jasperassistant.
    But i could'nt run the report using my java
    application.below given is the code sgment to call the
    report.
    try{
    String rFile="/root/Production.jasper";
    HashMap rptHash=null;
    FileInputStream fs=new FileInputStream(rFile);
    System.out.println("loading report file , read " +
    fs.available());
    JasperReport
    template=(JasperReport)JRLoader.loadObject(fs);
    System.out.println("Successfully created the report");
    JasperPrint
    report=JasperFillManager.fillReport(template,rptHash,conn);
    System.out.println("Report filled with data");
    }catch(JRException jex)
    {System.out.println("Jasper Exception
    :"+jex.getMessage());
    System.out.println("Jasper Exception
    :"+jex.fillnStackTrace());
    System.out.println("Jasper Exception
    :"+jex.getStackTrace());
    System.out.println("Jasper Exception
    :"+jex.getLocalizedMessage());
    While running this application ,it throws into the
    exception section.
    Out put of the program is
    Loading report file ,read 15275
    Jasper Exception : Error loading object from
    InputStream
    Jasper Exception
    :net.sf.jasperreports.engine.JRException :Error
    loading object from InputStream
    Jasper Exception
    :[Ljava.lang.StackTraceElement;@e7b241
    Jasper Exception :Error loading object from
    InputStream
    I request you to go through my code and give me some help to solve this asap.
    thanking you

    Hi Again Monty.
    I may have given up too soon.
    Click once on the downloaded TheGame.zip file to highlight it.
    Press the Command⌘ + I keys, to Get Info.
    Change Open With to Stuffit Expander.
    Double-Click on TheGame.zip.
    A folder titled TheGame will be created. Open that.
    In there will be:
    decks An Empty Folder
    Game.jar
    game.xml
    images Folder This one has many sub entries.
    preferences.properties
    readme.txt
    release_notes.txt
    runme.bat
    When I Get Info on Game.jar, Open With is set to Jar Launcher.
    That's as far as I am going though. does that help any?
    ali b

  • How to generate dynamic report with JasperReport

    hi,
    I have a frame.& i have some text filed & Some image. Now i want to see the all content of this JFrame in a Excel file or in a pdf file? For this what will be the rule for genarate .jrxml file for find the report? is it possible with JasperReport ? IS there anybody can help me?
    With regards
    Bina

    Hello,
    You can base your report on a PL/SQL function return a SQL query, for ex.:
    begin
        return 'select ename, job, sal from  emp';
    end;Regards,
    Dimitri
    http://dgielis.blogspot.com/
    http://www.apex-evangelists.com/
    http://www.apexblogs.info/
    REWARDS: Please remember to mark helpful or correct posts on the forum

  • Net.sf.jasperreports.engine.fill.JRExpressionEvalException

    Hi!
    I am trying to change the print engine from an old software project to JasperReports.
    Some data comes in a wrong characterset over the jdbcodbc-interface. I can't use an other driver, because this is a verry special database.
    I helped me with changing the fields to a new String($F{LB_TEXT}.getBytes(), "MacRoman").
    This worked verry well under iReport and Eclipse. And also, if I test my code over a btach-file under Windows XP.
    But if I call the programm inside the old application (same place, and same way as in the batch-file), I get the following error.
    ERROR!
    Message:
    net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression :
    Source text : new String($F{LB_TEXT}.getBytes(), "MacRoman")
    Level:
    SEVERE
    Stack Trace:
    Error evaluating expression : Source text : new String($F{LB_TEXT}.getBytes(), "MacRoman")
    net.sf.jasperreports.engine.fill.JREvaluator.evaluate(JREvaluator.java:197)
    net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:537)
    net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:505)
    net.sf.jasperreports.engine.fill.JRFillElement.evaluateExpression(JRFillElement.java:826)
    net.sf.jasperreports.engine.fill.JRFillTextField.evaluateText(JRFillTextField.java:368)
    net.sf.jasperreports.engine.fill.JRFillTextField.evaluate(JRFillTextField.java:353)
    net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFillElementContainer.java:275)
    net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:426)
    net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:1380)
    net.sf.jasperreports.engine.fill.JRVerticalFiller.fillGroupHeader(JRVerticalFiller.java:591)
    net.sf.jasperreports.engine.fill.JRVerticalFiller.fillGroupHeaders(JRVerticalFiller.java:524)
    net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:253)
    net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:113)
    net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:879)
    net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:782)
    net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:63)
    net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:402)
    net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:234)
    biz.soag.jr4ao.helpers.CreateReport.fillReport(CreateReport.java:112)
    biz.soag.jr4ao.helpers.CreateReport.doInBackground(CreateReport.java:67)
    biz.soag.jr4ao.helpers.CreateReport.doInBackground(CreateReport.java:1)
    javax.swing.SwingWorker$1.call(Unknown Source)
    java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    java.util.concurrent.FutureTask.run(Unknown Source)
    javax.swing.SwingWorker.run(Unknown Source)
    java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    java.lang.Thread.run(Unknown Source)
    MacRoman
    java.lang.StringCoding.decode(Unknown Source)
    java.lang.String.<init>(Unknown Source)
    java.lang.String.<init>(Unknown Source)
    LB45Ausdruck46d_lb_pos_1217230426744_870805.evaluate(LB45Ausdruck46d_lb_pos_1217230426744_870805:389)
    net.sf.jasperreports.engine.fill.JREvaluator.evaluate(JREvaluator.java:186)
    net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:537)
    net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:505)
    net.sf.jasperreports.engine.fill.JRFillElement.evaluateExpression(JRFillElement.java:826)
    net.sf.jasperreports.engine.fill.JRFillTextField.evaluateText(JRFillTextField.java:368)
    net.sf.jasperreports.engine.fill.JRFillTextField.evaluate(JRFillTextField.java:353)
    net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFillElementContainer.java:275)
    net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:426)
    net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:1380)
    net.sf.jasperreports.engine.fill.JRVerticalFiller.fillGroupHeader(JRVerticalFiller.java:591)
    net.sf.jasperreports.engine.fill.JRVerticalFiller.fillGroupHeaders(JRVerticalFiller.java:524)
    net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:253)
    net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:113)
    net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:879)
    net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:782)
    net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:63)
    net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:402)
    net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:234)
    biz.soag.jr4ao.helpers.CreateReport.fillReport(CreateReport.java:112)
    biz.soag.jr4ao.helpers.CreateReport.doInBackground(CreateReport.java:67)
    biz.soag.jr4ao.helpers.CreateReport.doInBackground(CreateReport.java:1)
    javax.swing.SwingWorker$1.call(Unknown Source)
    java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    java.util.concurrent.FutureTask.run(Unknown Source)
    javax.swing.SwingWorker.run(Unknown Source)
    java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    java.lang.Thread.run(Unknown Source)
    The problem comes from the conversation. Because if I don't make the conversation, or leafe the filed away, there is no error. But if I don't make the conversation, some german characters (Umlauts) are not correct.
    Has anybody an idea?
    Thanks,
    Christian.

    Hi,
    I solved this problem.
    An help is on this links:
    https://www.linuxnet.ch/jasper-reports-inline-images-as-svg-for-better-scaling/
    and
    http://community.jaspersoft.com/questions/525861/how-use-svg-jasperreports
    If you have/use a inline SVG string instead of SVG file, as showed in this links, it's necessary use this net.sf.jasperreports.renderers.BatikRenderer.getInstanceFromText in your report definition.
    Example of my .jrxml:
    <parameter name="ShapeImage" class="java.lang.String" isForPrompting="false">
    <parameterDescription><![CDATA[]]></parameterDescription>
    </parameter>
    <image hAlign="Center" vAlign="Middle">
    <reportElement x="2" y="106" width="551" height="186" uuid="0407b952-8088-4146-9dfc-b61f71e78201"/>
    <imageExpression><![CDATA[net.sf.jasperreports.renderers.BatikRenderer.getInstanceFromText($P{ShapeImage})]]></imageExpression>
    </image>
    </frame>

  • If image file not exist in image path crystal report not open and give me exception error problem

    Hi guys my code below show pictures for all employees
    code is working but i have proplem
    if image not exist in path
    crystal report not open and give me exception error image file not exist in path
    although the employee no found in database but if image not exist in path when loop crystal report will not open
    how to ignore image files not exist in path and open report this is actually what i need
    my code below as following
    DataTable dt = new DataTable();
    string connString = "data source=192.168.1.105; initial catalog=hrdata;uid=sa; password=1234";
    using (SqlConnection con = new SqlConnection(connString))
    con.Open();
    SqlCommand cmd = new SqlCommand("ViewEmployeeNoRall", con);
    cmd.CommandType = CommandType.StoredProcedure;
    SqlDataAdapter da = new SqlDataAdapter();
    da.SelectCommand = cmd;
    da.Fill(dt);
    foreach (DataRow dr in dt.Rows)
    FileStream fs = null;
    fs = new FileStream("\\\\192.168.1.105\\Personal Pictures\\" + dr[0] + ".jpg", FileMode.Open);
    BinaryReader br = new BinaryReader(fs);
    byte[] imgbyte = new byte[fs.Length + 1];
    imgbyte = br.ReadBytes(Convert.ToInt32((fs.Length)));
    dr["Image"] = imgbyte;
    fs.Dispose();
    ReportDocument objRpt = new Reports.CrystalReportData2();
    objRpt.SetDataSource(dt);
    crystalReportViewer1.ReportSource = objRpt;
    crystalReportViewer1.Refresh();
    and exception error as below

    First: I created a New Column ("Image") in a datatable of the dataset and change the DataType to System.Byte()
    Second : Drag And drop this image Filed Where I want.
    private void LoadReport()
    frmCheckWeigher rpt = new frmCheckWeigher();
    CryRe_DailyBatch report = new CryRe_DailyBatch();
    DataSet1TableAdapters.DataTable_DailyBatch1TableAdapter ta = new CheckWeigherReportViewer.DataSet1TableAdapters.DataTable_DailyBatch1TableAdapter();
    DataSet1.DataTable_DailyBatch1DataTable table = ta.GetData(clsLogs.strStartDate_rpt, clsLogs.strBatchno_Rpt, clsLogs.cmdeviceid); // Data from Database
    DataTable dt = GetImageRow(table, "Footer.Jpg");
    report.SetDataSource(dt);
    crv1.ReportSource = report;
    crv1.Refresh();
    By this Function I merge My Image data into dataTable
    private DataTable GetImageRow(DataTable dt, string ImageName)
    try
    FileStream fs;
    BinaryReader br;
    if (File.Exists(AppDomain.CurrentDomain.BaseDirectory + ImageName))
    fs = new FileStream(AppDomain.CurrentDomain.BaseDirectory + ImageName, FileMode.Open);
    else
    // if photo does not exist show the nophoto.jpg file
    fs = new FileStream(AppDomain.CurrentDomain.BaseDirectory + ImageName, FileMode.Open);
    // initialise the binary reader from file streamobject
    br = new BinaryReader(fs);
    // define the byte array of filelength
    byte[] imgbyte = new byte[fs.Length + 1];
    // read the bytes from the binary reader
    imgbyte = br.ReadBytes(Convert.ToInt32((fs.Length)));
    dt.Rows[0]["Image"] = imgbyte;
    br.Close();
    // close the binary reader
    fs.Close();
    // close the file stream
    catch (Exception ex)
    // error handling
    MessageBox.Show("Missing " + ImageName + "or nophoto.jpg in application folder");
    return dt;
    // Return Datatable After Image Row Insertion
    Mark as answer or vote as helpful if you find it useful | Ammar Zaied [MCP]

  • Can you show at a glance which event images are in albums?

    Say I had an event containing multiple similar but different images, is there a way to show in the grid view for example which images have already been used in one or more albums?
    Would be handy to be able to select a 'show list of albums containing this image'dialogue box. I guess you could hide images you've used but that wouldn't work automatically, nor would any other tagging/rating.
    Another approach would be to make albums containing everything in a given event, then move the images out of that album once used, just seems fiddly to me.
    AC

    AC
    Would be handy to be able to select a 'show list of albums containing this image'dialogue box.
    Yes it would and many people have suggested tit. Add your voice to the chorus at iPhoto Menu -> Provide Apple Feedback.
    A workaround - and it's no better - is to go to an album and select al, then give all those pics a keyword. Then in grid view you can see which pics have the keyword. (View -> Keywords)
    Regards
    TD

  • Error while attaching a image in forms10g envion..

    hi
    i am getting this error while attaching a image in forms 10g enviornment.
    ERROR>WUC-24 [URLDownload.pullFile()] Error reading URL http :// 10.80.50.222:7778/forms90/webutil/jacob.dll
    regards
    Geo.

    did you install jacob ? with the correct version number described in the installation-guides.
    jacob is not an oracle tool, which normally is only useful for COM-commands against windows.
    What did you do with the image?

  • System Image Restore in Window 8.1

    I have not been able to find a data migration application that works at cloning a Windows 8.1 hard drive to a new SSD.  With that in mind I want to go about moving the contents, data and operating system from my working C: to a new SSD.  I want
    to go about it as if I have backed up my system, my C: drive has failed so I need to install a new drive and restore my data and operating system to the new drive.  I can't seem to find any simple (this should be simple) straight forward way to do this
    nor can I find any form of written instruction on how to go about this. 
    I would love to have someone articulate this.  As it stands I have a fully operational intact C drive.  I have completed a disk image to a second separate hard drive.  I now want to restore that content to a third (SSD ) drive.
    Where do I begin? 

    There is a system backup tool called System Image Backup, follow these steps to conduct this:
    Swipe in from the right edge of the screen, and then tap Search.
    (If you're using a mouse, point to the upper-right corner of the screen, move the mouse pointer down, and then click Search.)
    Enter File History in the search box, tap or click File History, and then click System Image Backup at the left part.
    See the screenshot as below, you can backup it on local machine or a DVD or a network share folder:
    Besides, I need to point out that this backup method will generate a vhd file, if you want to restore the system you need an DVD installation midia.
    You cannot just restore a vhd file directly to the hard drive.
    regards
    v-yamliu

  • Adobe Photoshop CS2 opening an image in middle of CS opening screen?

    Can anyone please help me with a way of opening images in CS2 where after opening they will appear in the middle
    of the CS screen rather then in the top left corner?
    I can drag and maximize so they appear in the middle, but on reopening another image they default to the top left again, I would like them to always
    open in the middle?
    Thanks

    Still having problems?  I was struggling to find any documentation for CS2 online, but realised that my bookshelf goes back to Photoshop 6, and I have Martin Evening's Photoshop for Photographers CS2.  Unfortunately, I could see nothing in any of the Preferences tabs that would help.
    At this stage I don't really know what you have tried?  You should try to reset your workspace, and if that does nothing, reset your preferences.  The usual way to do that is to hold down Shift Alt Ctrl while opening Photoshop, but I don't know for sure that worked with CS2.
    Bernie Ecclestone would only need a tiny exec jet, unless he wanted to take his wife along. ;-)
    CC is Creative Cloud, and Tabs are those things you see along the top of the screen in your web browser when you have more than one page open.
    Tauranga is on the North Island, but is very nice and has great beaches (if they have got the oil off)  I live in rural Marlborough right in the middle of the prime grape growing area.  Try Google with Rapaura.  I'm a few hundred metres south of the school.

  • Image Processor Tab Missing in New Adobe Bridge CC 2014

    In the new Bridge CC you used to have a TAB under tools called Photoshop which you could run the script Image Processor for easily processing jpegs. What has happened to this and is their maybe a new way of processing jpegs to lo-res that I dont know about from tiff or jpeg or does my bridge have a problem?
    I have attached a image grab from my bridge that shows that the tab is not there. I know that you can access image processor directly from Photoshop, but they used to always be linked.

    No, it is still in Bridge CC.
    Did you uninstall Photoshop CC after installing Photoshop CC 2014? If so, that may have removed some of the Bridge integration scripts by mistake. Re-installing Photoshop CC 2014 should replace the scripts.
    and it should give the image processor tab back

  • Problem with Adobe BRIDGE getting Photoshop/Image Processor menu

    When I open my drop-down or fly-out menu under TOOLS in Bridge (CS3 version), the entire portion of the menu which is supposed to appear next underneath the Cache line option is missing (i.e., Photoshop, Illustrator, InDesign, Start Meeting..., Photoshop services).
    What gives?
    I'm trying to get to Image Processor under the Photoshop menu option (which is supposed to appear in the Tools drop-down menu).
    Please tell me what's wrong. Thanks in advance.

    Thanks, but there IS no Photoshop subheading in my Tools menu.
    That exactly describes the problem I'm having!

Maybe you are looking for

  • Can't log in message "what is the username associated with this smartphone​"

    When I attempt to login to app world, I enter my email address and pw, and the it gives me a popup for - "what is the username associated with this smartphone".  How do I find out what to enter here?  (I don't remember what I may have used in the pas

  • How to add metadata to multiple images via Template

    Hi Wonder if anyone can tell me if it is possible to add Metadata to multiple images using a metadata template.  I see that I can add to multiple using Organizer but with that you have to type in the metadata.  In Elements 11 I can do it using a temp

  • Apache2.x and Tomcat5.0.x & Session' data

    hi everyone, i was just wondering how i can pass user's session data from Apache to Tomcat and visversa: an examples im restricting access to a directory secret/* with Apache Authentication on Mysql (AAOM) Inside that directory ther is a link to one

  • Adobe Acrobat Professional

    Hello, I am currently searching any methods of using the bookmark titles to move pages within the document. (Not to an external document). I am currently dealing with large documents (250pages - 1200pgs), and I need to move pages around. It would be

  • Adobe Acrobat X Standard via Softwareverteilung Updaten Probleme

    Hallo Liebes Community-Team, da hier jede Menge Experten sitzen glaub ich das mein Problem für euch ein Klacks ist :-) wir haben folgendes Problem bzw. ist uns folgendes unklar: Wir verteilen absofort den kostenfreien Adobe Acrobat Reader über die Wi