Displaying Static Image of a page in an application

Hi All,
Ultimately I'd like to design an app which displays a PDF, however I only really need a static image of the page... no toolbars, etc...
I've successfully written the app with the Adobe Reader ActiveX component, but there are a few things left to desire.
1. I can use setShowToolbar and setShowToolbar to disable them and get a fairly static view of the PDF (+/- the annoying tab bar on the left), however when it first renders the object, I see both the scroll bars and toolbars, then it flashes and removes the toolbar, then flashes again and removes the scrollbars. It doesn't seem to matter in what order I call loadFile, setShowToolbar, setShowToolbar... or the delay afterwards in which I wait to show the object. Any way to get rid of this?
2. I've tried toying with the IViewObject::Draw method with no luck what so ever. I've tried numerous ways in my WM_PAINT message of my window to call this method in hopes of a static rendering to appear. The method returns S_OK, but I get nadda. I've followed examples of using the IWebBrowser object in this way to get a static web page, other than the fact that I call loadFile in the IAxAcroShim object first to give it something to show... This is my first app using an ActiveX component, so any help here would be appreciated.
3. I noticed a lot of posts on how to remove the tab (nav) bar that appears on the right, and most peeps say "not possible". I tried the approach of finding the window by looking for "AVTabStripView", and just hiding it, and resizing the window with the doc in it to fill in the gap... works ok... The doc window being "AVPageView".

Well, the ActiveX control is exactly what I want... to view a PDF in my app just the way it is. I was only trying to produce a static view to get rid of the annoying flashes that happen when the toolbar and scrollbars are disabled. I don't care that the user can re-enable them, or do what they want, I'm only showing it initially with the toolbar off since the window is small and I want to maximize the document in the window for the users benefit. So, perhaps "static" wasn't the best word for it.
The purpose of the app is simply to display Adobe Reader as a child window inside of a full-screen app so that the user doesn't need to alt-tab continuously to compare data. The parent app runs in full-screen, with no "windowed" mode available. I'm using ActiveX instead of the app directly so that the PDF can the displayed in a portion of the screen that makes sense. And all the PDFs being displayed are single page... i.e. displaying a manual for a game, from within the game, but the window itself is decorated to go with the game...

Similar Messages

  • How to display uploaded image in jsp page.

    Hello,
    I am using struts 1.2.9 and and have uploaded image on the server. Now what I want to do display the image in jsp page after clicking on one link in jsp. I have tried many thing to display image in jsp page. But I am getting an error during displaying image in jsp. I have displayed absolute path in servlet. and used InputStream and outputstream to display image in jsp page.
    Can any one help.
    Thanks in advance
    Manveer Singh

    Follow this. This topic is very popular recently on the forum.

  • Report deployed to new server does not display static image

    Hi,
    We have several web sites on a server running Windows Server 2008 R2 Standard, SP1, 64-bit.  It has installed .NET Framework 4 Client Profile and Extended, ver. 4.0.30319 (according to Control Panel->Programs, as well as c:\Windows\Microsoft.NET\Framework).  Two of the sites use many Crystal Reports, most of which include a static image as a logo. This image is embedded in each report; there is no stand-alone image file that gets deployed.
    Recently, we migrated to a new server, running the same version of Windows & .NET Framework.  As near as we can tell, the 2 servers are nearly identical, as far as configuration and permissions, etc. One notable exception is the DefaultAppPool, which is Classic on the original server and Integrated on the new. (When I changed the new server to Classic, the apps failed to run properly.)  The other exception is the old server is on a stand-alone box, while the new server is a virtual machine.
    For one of the apps on the new server, the embedded logo images are not displaying on the page.  Instead, there is a little red X with the word "Image".  For the other app on the new server, the reports display fine.  Furthermore, if I copy one of the "broken" rpt files from the "broken" app to the "good" app, the report displays correctly!  And of course, the same file displays correctly in all circumstances on the old server.
    This suggests to me that there is not a problem with the report file, per se', but rather with the environment to which it is deployed.  Permissions?  If so, where?
    Any suggestions would be much appreciated.
    Thanks.
    --d

    The search string 'crystal red x net' (search box in top right corner) should return a number of KBAs, docs, blogs, etc. See if any of those help.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Problem with displaying BLOB images on JSP page using a servlet

    hi. I have a big problem with displaying BLOB images using JSP. I have a servlet that connects to the oracle database, gets a BLOB image , reads it, and then displays it using a BinaryStream. The problem is , this works only when i directly call that servlet, that is http://localhost:8080/ImageServlet. It doesn't work when i try to use that servlet to display my image on my JSP page (my JSP page displays only a broken-image icon ) I tried several coding approaches with my servlet (used both Blob and BLOB objects), and they work just fine as long as i display images explicitly using only the servlet.
    Here's what i use : ORACLE 10g XE , Eclipse 3.1.2, Tomcat 5.5.16 , JDK 1.5
    here is one of my image servlet's working versions (the essential part of it) :
                   BLOB blob=null;
              rset=st.executeQuery("SELECT * FROM IMAGES WHERE ID=1");
              while (rset.next())
                   blob=((OracleResultSet)rset).getBLOB(2);
              response.reset();
              response.setContentType("image/jpeg");
              response.addHeader("Content-Disposition","filename=42.jpeg");
                    ServletOutputStream ostr=response.getOutputStream();
                   InputStream istr=blob.getBinaryStream(1L);
                    int size=blob.getBufferSize();
              int len=-1;
                    byte[] buff = new byte[size];
                         while ((len=istr.read( buff ))!=-1 ) {
                   ostr.write(buff,0,len);
             response.flushBuffer();
             ostr.close(); and my JSP page code :
    <img src="/ImageServlet" border="0"  > If you could just tell me what i'm doing wrong here , or if you could show me your own solutions to that problem , i would be very greatful ,cos i'm realy stuck here , and i'm rather pressed for time too. Hope someone can help.

    I turns out that it wasn't that big of a problem after all. All i had to do was to take the above code and place it into another JSP page instead of into a servlet like i did before. Then i just used that page as a source for my IMG tag in my first JSP. It works perfectly well. Why this doesn't work for servlets i still don't know, but it's not a problem form me anymore . Ofcourse if someone knows the answer , go ahead and write. I would still appriceatte it.
    here's the magic tag : <img src="ImageJSP.jsp" border="0"  > enjoy : )

  • How to display custom images on a Page..?

    Hi Guys,
    I have developed a application for my company, everything is working fine..,
    but on the Home Page of the application i want to display my company LOGO image.
    I have uploaded the images in the shared components -->Files --> Images
    but how to put them on the Page..,
    Thanks..

    Within the region you want to place them, simply enter the image html tag and use the following format as the location:
    href="#APP_IMAGES'#image.jpg"

  • Displaying graphical image on home page

    hi
    I have created an aplication in apex3.0 on 11g os win XP. I wanted to display image on upper of my home page. I have tried my best but i can't find any thing to help me. Please anyone can help me. Also I am not experienced programmer.
    Thanks
    Sajjad

    Hi,
    There are 2 steps you have to follow:
    Step 1- Upload the image in the workspace
    Go to Application Builder->workspace->Shared components->images->create->Associate the application/leave it blank->browse->Upload.
    Step 2- You have to call that image in the HTML Header
    In the HTML header of the Home Page, use the following code, to include the image, I used a dummy file name, xyz.gif. you can use your graphics file name.
    <img src = "#WORKSPACE_IMAGES#xyz.gif">
    Thanks!

  • Safari Not Displaying All Images On Web Page

    When I look at a web page in Safari on my iPhone 3GS, not all of the images on the page load. Instead, I see little blue squares with question marks in them. However, if I look at the same web page on an iPhone 4, the images DO load. Why is this happening?
    Here are two screenshots to prove my point:
    iPhone 3GS
    iPhone 4

    Settings>Safari>Javascript On maybe?
    May find an answer here as well:
    http://manuals.info.apple.com/enUS/iPhone_iOS4_UserGuide.pdf

  • Display loading image before pre page load

    hi,
    We have requirement some pages are loading very slow, while the page is processing we need to display a loading image. How to achieve this requirement.
    Especially in IPC on click of one portlet it is taking some time to display in other portlet.
    Thanks
    Manu

    Use Javascript

  • Problem in displaying image on jsp page

    I want to display an image on jsp page.I copied the image the image in WebContent folder.
    I am able to see the image on the design pane when using the following code:-
    <img src="/image.gif" height="50" width="50"> but when i run it in the browser nothing gets diplsyed.
    also when i use the image container and select the source option that image is not displayed in the WebContents file..plz help.

    Hi,
    Seems that the Problem is there with the way how you specifuied the Image relative Path:
    You have specified the below: The opath of image starts with (/) forward slash:
    *<img src="/image.gif" height="50" width="50">*
    It means to access this Image WebLogic Container will form a Path like this:
    http://localhost:7001/image.gif
    BUT may be the image is available inside your Context root: So Change the <Img> tag like following in your JSP:
    *<img src="image.gif" height="50" width="50">*
    (*NOTE:* Never Start your src path with a Preceesing /)
    Now WLE will consider the path like below ..if your Applications Context root is "TestApp"
    http://localhost:7001/TestApp/image.gif
    I am Assuming that Inside the TestApp Application "image.gif" And "your.jsp" jSP pages are Co-Located (Means available in the Same Directory).
    Thanks
    Jay SenSharma
    http://jaysensharma.wordpress.com (WebLogic Magical Stuff)

  • ADF BC:Displaying Image On JSP page

    Hai All
    I'm using ADF BC and JDev 10.1.3.
    I want to show an image on my jsp page from database.
    For this I have written an servlet with the following code
    response.setContentType("image/gif");
    OutputStream os = response.getOutputStream();
    String amDef = "package.AppModuleName";
    String config = "Configuration Name";
    ApplicationModule am = Configuration.createRootApplicationModule(amDef, config);
    ViewObjectImpl vo =
    (ViewObjectImpl)am.findViewObject("ViewObject"); // get view object (the same as used in the table)
    System.out.println("vo:" + vo);
    vo.executeQuery();
    Row row = vo.first();
    BlobDomain image = (BlobDomain)row.getAttribute("field");
    //System.out.println("image:" + image);
    InputStream is = image.getInputStream();
    // copy blob to output
    byte[] buffer = new byte[10 * 1024];
    int nread;
    while ((nread = is.read(buffer)) != -1)
    os.write(buffer, 0, nread);
    os.close();
    Configuration.releaseRootApplicationModule(am, false);
    This servlet working perfectly.The image is displayed on the page while running
    the servlet alone.
    My problem is the image is not got displyed on the jsp page
    I tried following code to call the servlet
    <af:objectImage source="ImageServlet"/>
    <img src="ImageServlet" width="140px" height="50px" align="right">
    Where ImageServlet is the url-pattern in the web.xml for the servlet
    Both method are not working
    Any body please help me.......
    what I'm missing..............
    Is there any other way to display an image on JSP page using backing bean
    method.
    Thanks
    Ans

    HI,
    See: http://kuba.zilp.pl/?id=241
    Kuba

  • Random display of images!!

    Hi
    I'm following the previous post and accordingly i was able to display a image on the iView.
    Now I've a list of images
      say image1.jpg, image2.jpg, image3.jpg and so on..
    Now i want to pick any one of them and display any one of them. how do i go about this.
    Following is the code which i wrote can't find the error in it.
    <script type="javascript">
    var images = new Array();
    images[0] = "/images/birds.jpg";
    images[1] = "/images/child.jpg";
    images[2] = "/images/dolphin1.jpg";
    images[3] = "/images/dolphin2.jpg";
    images[4] = "/images/fish.jpg";
    images[5] = "/images/kayak.jpg";
    images[6] = "/images/man.jpg";
    images[7] = "/images/pasture1.jpg";
    images[8] = "/images/pasture2.jpg";
    images[9] = "/images/pasture3.jpg";
    images[10] = "/images/runner.jpg";
    var rannum = Math.floor(Math.random()*11)
    var choice = images[rannum];
    </script>
    <% String image2 = componentRequest.getWebResourcePath() + "/images/insidetrack3.gif"; %>
    <% String image1 = componentRequest.getWebResourcePath() + "/images/pasture1.jpg";%>
    <IMG SRC="<%=image1%>" WIDTH="340" HEIGHT="238" BORDER="0" ALIGN="left">
    <IMG SRC="<%=image2%>" WIDTH="360" HEIGHT="238" BORDER="0">
    can anyone help me out.
    Thanks in advance
    Srikant

    Hi,
    what are you trying to achieve?
    You render static images on the page and some JavaScript
    that holds a collection of URL's to other images.
    From this collection you basically pick 1 with the Math.random() call and store the url in a variable choice. Well... storing a URL string in a variable does usually not make any Image Object visible.
    If you want to apply the image to an existing image on the page you have to do that via JavaScript,
    basically like this:
    <script type="javascript">
    var images = new Array();
    images[0] = "/images/birds.jpg";
    images[1] = "/images/child.jpg";
    images[2] = "/images/dolphin1.jpg";
    images[3] = "/images/dolphin2.jpg";
    images[4] = "/images/fish.jpg";
    images[5] = "/images/kayak.jpg";
    images[6] = "/images/man.jpg";
    images[7] = "/images/pasture1.jpg";
    images[8] = "/images/pasture2.jpg";
    images[9] = "/images/pasture3.jpg";
    images[10] = "/images/runner.jpg";
    var rannum = Math.floor(Math.random()*11)
    var choice = images[rannum];
    <b>document.getElementById("myimage1").src=choice;
    document.getElementById("myimage2").src=choice;</b>
    </script>
    <% String image2 = componentRequest.getWebResourcePath() + "/images/insidetrack3.gif"; %>
    <% String image1 = componentRequest.getWebResourcePath() + "/images/pasture1.jpg";%>
    <IMG <b>id=myimage1</b> SRC="<%=image1%>" WIDTH="340" HEIGHT="238" BORDER="0" ALIGN="left">
    <IMG <b>id=myimage2</b> SRC="<%=image2%>" WIDTH="360" HEIGHT="238" BORDER="0">
    If you like to do the random part on the server side you should also have you Array of URL's and the random call on the server side.
    Best Regards
    Martin

  • Safari not displaying all images

    Safari does not seem to display all images on certain pages. For example, on
    feed : // news.google.com/?output=rss
    all images for news headline items show the "questionmark" icon.
    And yes, "Display images when the page opens" is checked in Safari preferences.
    Has anyone had the same problem, and found a solution?
    Using: Safari Version 5.1.3 (7534.53.10), OS X (10.7.2).

    I recently downloaded Mountain Lion, and now have Safari 6.0.  I heard so many good things about this new version I decided to try Safari again as my main browser.  But now, I get this old problem.  Images not displaying.  Not sure if I will go back to Chrome or Firefox.
    There is no Appearances Tab in Safari 6.0 Preferences, and in thumbing through the tabs, I don't see anything under any of them re. displaying images.
    It has happened many times, but the particular site I am at now is
    http://www.businessinsider.com/wall-street-analyst-commentary-2012-7?op=1
    I do get pics at http://news.google.com
    Hmmm, I get pics at http://www.businessinsider.com/wall-street-analyst-commentary-2012-7#
    but they have an ability to see the next 12 pages all on one page which is
                    http://www.businessinsider.com/wall-street-analyst-commentary-2012-7?op=1
    Does this mean the site is doing something "wrong"?  and Safari therefore won't show the pics?  perhaps I will go back to Firefox that will show "wrong" pics

  • Image in all page

    Post Author: fkleemann
    CA Forum: Crystal Reports
    How can I do display an image in all page as if outside bottom or mark of water??,  I have CR XI, thanks.

    Post Author: nani4p
    CA Forum: Crystal Reports
    Hi ,
    For water mark to appear implement following steps
    insert new page header below the one  you already have
    Place you image there in new page header
    Check the option Underlay Follwing sections
    Save it run the report.
    I guess you will be there with your desired result.
    Thanks,
    Nani.

  • Optimize php page for browsers lacking flash, so that it replaces flash objects with static images

    Hello,
    I basically want to have my php pages with flash swf objects to be smart enough to replace the flash swf's with static images or other content for the non-flash user (iphone, ipad, etc.) who visits the website.  I guess this would be an option or perhaps a script that just sent the visitor to a version of the .php page that is tailored to them, a version of the page designed for non-flash users.
    I've done a little bit of reading up and have found that some people like to use DOM scripts like
    Unobtrusive Flash Objects (UFO) v3.22
    or what seems to be the successor:
    SWFObject 2.0
    What is better?  Is there a better script out there to use at this point?  Advice would be much appreciated.

    I guess I will reiterate this.
    I would like someone to tell me which one of these scripts that I have mentioned above would be best to use.
    What am I trying to do?  Well from my understanding these scripts allow me to have multiple versions of the website, so that it loads up with static images in place of the flash swf's for... NON FLASH USERS.
    The script will be able to detect whether the flash capabilities of the browser are sufficient, and if not display the web page accordingly.
    SO.  I'm looking for an answer as to what is the best script to use, if it's not one of the scripts I am asking about.
    @The Shocker.. if I wanted to research it on the net by googling, which I already have, I wouldn't be using this forum.  I'm looking for someone who is knowledgeable in this area of expertise to give me a recommendation, based on information they can give me that is logical and clear.  And then I can do further research once I feel I'm being sent in the right direction.
    Thanks in advance to anyone who would like to offer me some direction on this.

  • Graph image not getting displayed when navigating from another page

    Hi All,
    I have implemented a line graph in ADF with "dept no"(in x-axis) and "avg sal"(in y-axis). When I am going to run only this graph page, its showing proper data.
    But,when I am trying to navigate from another jspx page (which is under some package) to this graph page, the graph is not getting displayed(graph image is not getting displayed).
    In my project I am following package structure for jspx and backing bean.
    Please help me to solve this problem.
    Thnx,
    Abhijit

    Abhijit,
    A couple of things:
    1). There's really not enough information provided to answer your question - have you tried doing some debugging?
    2). You may have beer luck on the [url http://forums.oracle.com/forums/forum.jspa?forumID=381&start=0]11g forum
    John

Maybe you are looking for

  • Poor performance and now dropping connection

    I am very underwhelmed by performance since switching to infinity FTTC last year. Download speed is very variable and I just cannot get an upload speed much better than 1.1 Mb/s. Now we have a regularly dropping connection. Last Saturday morning we h

  • Nokia 5800 firmware wish list

    hi, i would like nokia to include this next time they give me an update. I want some type writer sound when i am typing, not vibrations which was my battery. I want a new photo gallery, preferably 3d with a magnifying glass like photo explorer from b

  • Changing date of pictures goes wrong in iPhoto

    when changing the date of (multiple) photos the time continues to drop. So I type 2012 and the photo's are now backdated to 1435. When I try to change it again to 2012 it becomes 1350 or something of that order...

  • Bid PO Error

    Hi guys, We are working on SRM 5.0 (supp pack 10) and ECC6.0. We got an issue during PO creation from Bid Invitation. Its observed that in the process PO link when we open the PO created via Bid, we get an error msg 'Document structure inconsistent'

  • Data transfer from RT to FPGA using DMA FIFO

    Hello all, My question is "How do you stream data from RT target to FPGA target using DMA FIFOs?" I would like to control some indicators (or controls) in FPGA vi using controls in the RT vi using DMA FIFO. I have used four controls in my RT vi, but