Print Screen Opens on Page Immediately - How do I stop it?

Hi,
First I'd like to thank blarman74 and Andy because I worked off of the information on this thread:
Autoprint Print Friendly Page
Autoprint Print-Friendly Page
I created a Button: URL call to javascript:PrintPopup()
I put this code in the report's HTML Header:
<script language="JavaScript" type="text/javascript">
function PrintPopup () {
var url;
url = 'f?p=&APP_ID.:2004:&SESSION.::::::YES';
w = open(url,"winLov","Scrollbars=1,resizable=1,width=900,height=1000");
if (w.opener == null)
w.opener = self;
w.focus();
</script>
And in the report's Region Footer I put this code:
<script type="text/javascript">
window.print();
</script>
Now, here is the problem. When I first open page 2004, the print screen opens immediately. I have to close it before I can see page 2004. Then I click the button with the URL call and the printer friendly page opens with the print screen on top. This part is good. That works beautifully.
How do I stop the print screen from opening when I first open page 2004? I figure there is some setting I am missing or perhaps a piece of code somewhere.
Thanks,
Maggie

You could put the winpopup code in the footer of the printerfriendly template.
#FORM_CLOSE#</body>
</html>
<script type="text/javascript">
window.print();
</script>
I then have a navigation bar which has:
target type: A page in this application
&APP_PAGE_ID.
And printer friendly check box checked.
You can then print the current page from the navigation bar.
I don't use a button, but essentially you just want your action to be performed when the button is submitted.
Edited by: Keith Jamieson on Oct 29, 2008 2:44 PM

Similar Messages

  • How do you stop the welcome to firefox 4 screen from coming up every time I open firefox? I get two tabs, one the welcome window, then my home page. How do you stop the bloody welcome screen?

    How do you stop the welcome to firefox 4 screen from coming up every time I open firefox? I get two tabs, one the welcome window, then my home page. How do you stop the bloody welcome screen?

    Its not my home page, Like I said, I hae my home page also come up in a different tab (google) I also get the welcome to FF4 on a seperate tab. My home page is set to google. But I dont want the welcome screen to pop up

  • Each time I open Safari it opens the last web page I was at rather than my home page. How do I stop this from happening?

    Each time I open Safari it opens the last web page I was at rather than my home page. How do I stop this from happening?

    This is part of Lion's Resume feature (I assume you are on Lion).
    A couple of things you can do: System Preferences>General and deselect 'Restore windows when quitting and re-opening apps'.
    Also when you shutdown or restart make sure the following is unticked:

  • After Downloading v8 I keep getting checking compatibilty dialogue box popping up, then Firfox opens two tabs, Meet Mozilla welcome page and my home page. How can I stop this?

    After Downloading v8 I keep getting checking compatibilty dialogue box popping up when I launch Firefox. Then Firfox opens two tabs, Meet Mozilla welcome page and my home page. How can I stop this?

    That is a legitimate Mozilla newsletter. As it says in the email:
    You're receiving this email because you subscribed to receive email newsletters and information from Mozilla. If you do not wish to receive these newsletters, please click the Unsubscribe link below.
    Unsubscribe https://www.mozilla.org/en-US/newsletter/existing/ad9febcf-65ac-41fd-810b-798945f448f3/
    Modify your preferences https://www.mozilla.org/en-US/newsletter/existing/ad9febcf-65ac-41fd-810b-798945f448f3/ "

  • Help! My Mouse pad is not working properly. The arrow cannot be controlled, it just keeps jumping all over the page. How can I stop this?

    Help! My Mouse pad is not working properly. The arrow cannot be controlled, it just keeps jumping all over the page. How can I stop this?

    There are several possible causes for this issue. Please take each of the following steps that you haven't already tried until it's resolved. Some may not apply in your case.
    1. Follow the instructions in this support article, and also this one, if applicable. A damaged or defective AC adapter could be the cause, even if it's the right kind.
    2. Press down all four corners of the trackpad at once and release. If there's any effect, it's likely to be temporary, and in that case the unit must be serviced or replaced.
    3. Open the Bluetooth preference pane in System Preferences and delete all pointing devices other than the trackpad, if applicable. Disconnect any USB pointing devices. By a "pointing device," I mean a peripheral that moves the cursor, such as a trackpad, mouse, trackball, or graphics tablet. A plain keyboard is not a pointing device.
    4. Start up in safe mode and test, preferably without launching any third-party applications. If you don't have the problem in safe mode, but it comes back when you restart as usual, stop here and post your results. Do the same if you can't start in safe mode. If there was no difference in safe mode, go on to the next step.
    5. Reset the System Management Controller.
    6. If you're using a Bluetooth trackpad, investigate potential sources of interference, including USB 3 devices.
    7. A swollen battery in a portable computer can impinge on the trackpad from below and cause erratic behavior. If you have trouble clicking the trackpad, this is likely the reason. The battery must be replaced without delay.
    8. There's a report that a (possibly defective) Thunderbolt Ethernet adapter can cause the built-in trackpad of a MacBook to  behave erratically. If you're using such an adapter, disconnect it and test.
    9. There's also a report of erratic cursor movements caused by an external display that was connected but not turned on.
    10. If none of the above applies, or if you have another reason to think that your computer is being remotely controlled, remove it from the network by turning off Wi-Fi (or your Wi-Fi access point), disconnecting from a Bluetooth network link, and unplugging the Ethernet cable or USB modem, whichever is applicable. If the cursor movements stop at once, you should suspect an intrusion.
    11. Make a "Genius" appointment at an Apple Store to have the machine and/or external trackpad tested.

  • When I send an email, Mozilla drops a screen that says"resolve names", how do I stop it?

    Mozilla drops a screen that says"resolve names", how do I stop it?

    Can you grab a screenshot of that message? <br />
    https://support.mozilla.com/en-US/kb/Adding+screenshots
    Keep in mind that Firefox doesn't actually do email. If you are using Firefox to view your email, you are using a webmail service and their software is displaying your email. The sending and receiving of email is done by that software, too.

  • I use Apple Mail and dislike Outlook.  If I create a note in Apple Mail, move it to desktop for easy access and then open the note, it opens in Outlook.  How do I stop Outlook from opening?  Do I need to uninstall Outlook?  Will it disrupt other software?

    I use Apple Mail and dislike Outlook.  If I create a note in Apple Mail, move it to my desktop for easy access and then open the note, it opens in Outlook.  How do I stop Outlook from opening?  Do I need to uninstall Outlook?  Will it disrupt other software?

    Open Apple Mail, and open Preferences (under Mail in the Menu Bar).  On the General tab, check the "Default Email Reader" and set it to Mail (6.6).

  • If my network goes out briefly due to a problem at my ISP, FireFox immediatly opens a "diagnose network problems" page. How can I stop this?

    If my network connection goes out briefly due to a problem at my ISP, FireFox immediately opens a "diagnose network problems" page. This is particularly annoying when I don't even have FireFox or any other software open. Ideally, I do NOT want FireFox to even check if my Network is connected. How can I stop this?

    Application Basics
    Name: Firefox
    Version: 36.0.4
    User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0
    Multiprocess Windows: 0/1
    Crash Reports for the Last 3 Days
    All Crash Reports
    Extensions
    Name: Avast Online Security
    Version: 10.2.0.187
    Enabled: true
    ID: [email protected]
    Name: Download Manager Tweak
    Version: 1.0.8
    Enabled: true
    ID: {F8A55C97-3DB6-4961-A81D-0DE0080E53CB}
    Name: FinalVideoDownloader plugin for Mozilla Firefox
    Version: 1.0.1
    Enabled: true
    ID: [email protected]
    Graphics
    Adapter Description: AMD Radeon HD 6670
    Adapter Drivers: aticfx64 aticfx64 aticfx64 aticfx32 aticfx32 aticfx32 atiumd64 atidxx64 atidxx64 atiumdag atidxx32 atidxx32 atiumdva atiumd6a atitmm64
    Adapter RAM: 1024
    Device ID: 0x6758
    Direct2D Enabled: true
    DirectWrite Enabled: true (6.3.9600.16384)
    Driver Date: 7-4-2014
    Driver Version: 13.251.9001.1001
    GPU #2 Active: false
    GPU Accelerated Windows: 1/1 Direct3D 11 (OMTC)
    Subsys ID: 25451458
    Vendor ID: 0x1002
    WebGL Renderer: Google Inc. -- ANGLE (AMD Radeon HD 6670 Direct3D9Ex vs_3_0 ps_3_0)
    windowLayerManagerRemote: true
    AzureCanvasBackend: direct2d
    AzureContentBackend: direct2d
    AzureFallbackCanvasBackend: cairo
    AzureSkiaAccelerated: 0
    Important Modified Preferences
    accessibility.typeaheadfind.flashBar: 0
    browser.cache.disk.capacity: 358400
    browser.cache.disk.smart_size_cached_value: 358400
    browser.cache.disk.smart_size.first_run: false
    browser.cache.disk.smart_size.use_old_max: false
    browser.cache.frecency_experiment: 1
    browser.link.open_newwindow: 2
    browser.places.smartBookmarksVersion: 7
    browser.sessionstore.restore_on_demand: false
    browser.sessionstore.upgradeBackup.latestBuildID: 20150320202338
    browser.startup.homepage_override.buildID: 20150320202338
    browser.startup.homepage_override.mstone: 36.0.4
    browser.tabs.autoHide: true
    dom.mozApps.used: true
    extensions.lastAppVersion: 36.0.4
    font.internaluseonly.changed: false
    gfx.direct3d.last_used_feature_level_idx: 0
    media.gmp-gmpopenh264.lastUpdate: 1423171160
    media.gmp-gmpopenh264.version: 1.3
    media.gmp-manager.lastCheck: 1430187591
    network.cookie.prefsMigrated: true
    places.database.lastMaintenance: 1430187593
    places.history.expiration.transient_current_max_pages: 104858
    plugin.disable_full_page_plugin_for_types: application/pdf,application/vnd.adobe.xfdf,application/vnd.fdf
    plugin.importedState: true
    plugin.state.npgeplugin: 0
    plugin.state.npgoogleupdate: 0
    plugin.state.npitunes: 0
    print.printer_Canon_MX920_series_Printer.print_bgcolor: false
    print.printer_Canon_MX920_series_Printer.print_bgimages: false
    print.printer_Canon_MX920_series_Printer.print_colorspace:
    print.printer_Canon_MX920_series_Printer.print_command:
    print.printer_Canon_MX920_series_Printer.print_downloadfonts: false
    print.printer_Canon_MX920_series_Printer.print_duplex: 0
    print.printer_Canon_MX920_series_Printer.print_edge_bottom: 0
    print.printer_Canon_MX920_series_Printer.print_edge_left: 0
    print.printer_Canon_MX920_series_Printer.print_edge_right: 0
    print.printer_Canon_MX920_series_Printer.print_edge_top: 0
    print.printer_Canon_MX920_series_Printer.print_evenpages: true
    print.printer_Canon_MX920_series_Printer.print_footercenter:
    print.printer_Canon_MX920_series_Printer.print_footerleft: &PT
    print.printer_Canon_MX920_series_Printer.print_footerright: &D
    print.printer_Canon_MX920_series_Printer.print_headercenter:
    print.printer_Canon_MX920_series_Printer.print_headerleft: &T
    print.printer_Canon_MX920_series_Printer.print_headerright: &U
    print.printer_Canon_MX920_series_Printer.print_in_color: true
    print.printer_Canon_MX920_series_Printer.print_margin_bottom: 0.5
    print.printer_Canon_MX920_series_Printer.print_margin_left: 0.5
    print.printer_Canon_MX920_series_Printer.print_margin_right: 0.5
    print.printer_Canon_MX920_series_Printer.print_margin_top: 0.5
    print.printer_Canon_MX920_series_Printer.print_oddpages: true
    print.printer_Canon_MX920_series_Printer.print_orientation: 0
    print.printer_Canon_MX920_series_Printer.print_page_delay: 50
    print.printer_Canon_MX920_series_Printer.print_paper_data: 1
    print.printer_Canon_MX920_series_Printer.print_paper_height: 11.00
    print.printer_Canon_MX920_series_Printer.print_paper_name:
    print.printer_Canon_MX920_series_Printer.print_paper_size_type: 0
    print.printer_Canon_MX920_series_Printer.print_paper_size_unit: 0
    print.printer_Canon_MX920_series_Printer.print_paper_width: 8.50
    print.printer_Canon_MX920_series_Printer.print_plex_name:
    print.printer_Canon_MX920_series_Printer.print_resolution: 0
    print.printer_Canon_MX920_series_Printer.print_resolution_name:
    print.printer_Canon_MX920_series_Printer.print_reversed: false
    print.printer_Canon_MX920_series_Printer.print_scaling: 1.00
    print.printer_Canon_MX920_series_Printer.print_shrink_to_fit: true
    print.printer_Canon_MX920_series_Printer.print_to_file: false
    print.printer_Canon_MX920_series_Printer.print_unwriteable_margin_bottom: 0
    print.printer_Canon_MX920_series_Printer.print_unwriteable_margin_left: 0
    print.printer_Canon_MX920_series_Printer.print_unwriteable_margin_right: 0
    print.printer_Canon_MX920_series_Printer.print_unwriteable_margin_top: 0
    print.printer_HP_Photosmart_C4380_series.print_bgcolor: false
    print.printer_HP_Photosmart_C4380_series.print_bgimages: false
    print.printer_HP_Photosmart_C4380_series.print_colorspace:
    print.printer_HP_Photosmart_C4380_series.print_command:
    print.printer_HP_Photosmart_C4380_series.print_downloadfonts: false
    print.printer_HP_Photosmart_C4380_series.print_duplex: 0
    print.printer_HP_Photosmart_C4380_series.print_edge_bottom: 0
    print.printer_HP_Photosmart_C4380_series.print_edge_left: 0
    print.printer_HP_Photosmart_C4380_series.print_edge_right: 0
    print.printer_HP_Photosmart_C4380_series.print_edge_top: 0
    print.printer_HP_Photosmart_C4380_series.print_evenpages: true
    print.printer_HP_Photosmart_C4380_series.print_footercenter:
    print.printer_HP_Photosmart_C4380_series.print_footerleft: &PT
    print.printer_HP_Photosmart_C4380_series.print_footerright: &D
    print.printer_HP_Photosmart_C4380_series.print_headercenter:
    print.printer_HP_Photosmart_C4380_series.print_headerleft: &T
    print.printer_HP_Photosmart_C4380_series.print_headerright: &U
    print.printer_HP_Photosmart_C4380_series.print_in_color: true
    print.printer_HP_Photosmart_C4380_series.print_margin_bottom: 0.5
    print.printer_HP_Photosmart_C4380_series.print_margin_left: 0.5
    print.printer_HP_Photosmart_C4380_series.print_margin_right: 0.5
    print.printer_HP_Photosmart_C4380_series.print_margin_top: 0.5
    print.printer_HP_Photosmart_C4380_series.print_oddpages: true
    print.printer_HP_Photosmart_C4380_series.print_orientation: 0
    print.printer_HP_Photosmart_C4380_series.print_page_delay: 50
    print.printer_HP_Photosmart_C4380_series.print_paper_data: 1
    print.printer_HP_Photosmart_C4380_series.print_paper_height: 11.00
    print.printer_HP_Photosmart_C4380_series.print_paper_name:
    print.printer_HP_Photosmart_C4380_series.print_paper_size_type: 0
    print.printer_HP_Photosmart_C4380_series.print_paper_size_unit: 0
    print.printer_HP_Photosmart_C4380_series.print_paper_width: 8.50
    print.printer_HP_Photosmart_C4380_series.print_plex_name:
    print.printer_HP_Photosmart_C4380_series.print_resolution: 0
    print.printer_HP_Photosmart_C4380_series.print_resolution_name:
    print.printer_HP_Photosmart_C4380_series.print_reversed: false
    print.printer_HP_Photosmart_C4380_series.print_scaling: 1.00
    print.printer_HP_Photosmart_C4380_series.print_shrink_to_fit: true
    print.printer_HP_Photosmart_C4380_series.print_to_file: false
    print.printer_HP_Photosmart_C4380_series.print_unwriteable_margin_bottom: 0
    print.printer_HP_Photosmart_C4380_series.print_unwriteable_margin_left: 0
    print.printer_HP_Photosmart_C4380_series.print_unwriteable_margin_right: 0
    print.printer_HP_Photosmart_C4380_series.print_unwriteable_margin_top: 0
    privacy.donottrackheader.enabled: true
    privacy.sanitize.migrateFx3Prefs: true
    storage.vacuum.last.index: 1
    storage.vacuum.last.places.sqlite: 1427897875
    Important Locked Preferences
    JavaScript
    Incremental GC: true
    Accessibility
    Activated: false
    Prevent Accessibility: 0
    Library Versions
    NSPR
    Expected minimum version: 4.10.7
    Version in use: 4.10.7
    NSS
    Expected minimum version: 3.17.4 Basic ECC
    Version in use: 3.17.4 Basic ECC
    NSSSMIME
    Expected minimum version: 3.17.4 Basic ECC
    Version in use: 3.17.4 Basic ECC
    NSSSSL
    Expected minimum version: 3.17.4 Basic ECC
    Version in use: 3.17.4 Basic ECC
    NSSUTIL
    Expected minimum version: 3.17.4
    Version in use: 3.17.4
    Experimental Features
    ---------------------

  • I keep getting an error message "To open X1100 Series Button Monitor, you need to install Rosetta".  I used to have a Lexmark X1100 printer attached to this Mac.  How can I stop this error?

    I just had a new hard drive put in my IMac and ever since I got it home this error pops up "To open X1100 Series Button Monitor, you need to install Rosetta.  Would you like to install it now?  Two years ago I had a Lexmark printer attached to this Mac.  I'm not sure why this is happening as I believe I have move all Lexmark files to the Trash bin.  Does anyone know how I can stop getting this error?  Thanks.

    Check in System Preferences> Printers to see if the Lexmark is still showing in your printer list. If it is, click it and hit the minus button to remove it.
    If it's not showing, when you trashed the Lexmark software, did you notice if there was an uninstall file? Sometimes just moving unwanted programs to the trash can doesn't get rid of all of the installed software and the software manufacturers include an uninstall option to remove those 'hidden additional files'.
    Check support at Lexmark's web site to see if they offer a solution.

  • Whenever I want to open a template in Microsoft Word it automatically opens in Pages.  how do I get this to stop?

    Whenever I open a template document in Microsoft word, it automatically opens in Pages.  THis has happened since I downloaded Mavericks.  How do I get this to stop and allow me to use Microsoft word templates in Miicrosoft word?

    Right click on a template and choose Get Info. Find the "Open with" section, and change it to Word. Click Change All if you want all templates to be opened in Word by default.

  • A lot of tabs loads and tells me there was a problem loading the page. How can I stop all the tabs loading because ist slows down Firefox.

    When I open Firefox, a lot of tabs try to open at the same time. They all say Problem loading the page. It happened after I tried to download a owners manual for Harley Davidson motor cycles. How can I stop all but one tab from opening.

    This can be a problem with the file [http://kb.mozillazine.org/sessionstore.js sessionstore.js] and sessionstore.bak in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder]
    Delete [http://kb.mozillazine.org/sessionstore.js sessionstore.js] and sessionstore.bak in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder]
    If you see files sessionstore-##.js with a number in the left part of the name like sessionstore-1.js then delete those as well.
    See:
    * http://kb.mozillazine.org/Session_Restore

  • When I close Firefox another Firefox browser opens. WHY and how do I stop this?

    Every time I close Firefox another Firefox browser opens. Then I close that one and it stays closed. How do I stop it from opening a new Firefox browser on it's own?

    Is it possible that you actually have two Firefox windows open and Windows 7 is showing one Firefox on the System task bar, but if you were wave mouse over that, you might see two windows.
    To Close Firefox use File > Exit (Alt+F > Exit)
    and not the X in the upper right corner which only closes the Window and may or may not close Firefox if it is the last window. The reason it does not always close Firefox is that there may be other tasks running so you don't see Firefox anywhere but in the System Task Manager on the Processes Tab which is where you can see if firefox.exe is running or not. Shortcut to Task Manager on Windows 7 is Ctrl+Shift+Esc (for other Windows systems Ctrl+Alt+Del , select Task Manager,...)

  • I often get social buttons on left side obscurring a web page. How can I stop this?

    These FB/twitter/g+ share/like buttons, or widgets(?) appear on certain websites and I can't read the information on the page itself. How can I stop them from appearing?

    This might be of interest for you https://adblockplus.org/en/features#socialmedia
    Let us know if this solves your inquiry.

  • HT2477 when i move the cursor across the screen it launches the dashboard - how do i stop it

    when i move the cursor across the screen to the left it launches the dashboard - how do i stop it doing that ?

    Hi Jimb9,
    Thanks for visiting Apple Support Communities.
    If Dashboard seems to be launching automatically when you move your mouse to the left, first check to see if a "Hot Corner" has been set.
    Hot Corners
    To specify an action to perform when you move the pointer to a screen corner, choose the action from one of the Active Screen Corners pop-up menus.
    After you set an active corner, move your mouse to that corner of your screen to see the result.
    You can find the Active Screen Corners menu by going to System Preferences, then choosing Mission Control and clicking the Hot Corners button in the bottom left.
    These articles have more information about Mission Control:
    Mac Basics: Mission Control
    http://support.apple.com/kb/ht4689
    OS X Mavericks: Mission Control preferences
    http://support.apple.com/kb/PH13925
    All the best,
    Jeremy

  • Lovoo app by k2g media ltd is spam advertising and keeps opening the App Store, how can I stop it

    How can I stop this app from hijacking safari.

    It is the site you are going to.
    The advertising they are using is giving safari a URL for the App Store, causing safari to open the App Store.
    Stop going to the site using this kind of advertising, it will stop happening.
    I had this is issue with a Mac news site.
    I stooped going to their site, it stopped happening.
    I also used the contact us link on their site to tell them I was leaving and why.

Maybe you are looking for

  • Download error; cannot redownload OSX Mountain Lion

    I recently bought a MacBook Air, and I am trying to download and install my free copy of Mountain Lion. I started downloading it, and at one point the download stopped, and it says an error has occured in the app store. In my purchases, the button to

  • Iphoto Crashes when I try to change preferences

    I updated to iPhoto 9.2.1 and the program crashes if I try to open iPhoto preferences. I am running the latest version of Lion. Here's what displays on the screen after the crash. Process:         iPhoto [21286] Path:            /Applications/iPhoto.

  • Replacement for Acrobat 9 Pro Extended

    Is there a replacement for Acrobat 9 Pro extended or a Acrobat 3 D version available Sergius

  • Actions and creating different orientations/layers/sizes from a single file - is it worth it?

    Hi there! I know this is the scripting forum - but this topic seemed more appropriate here than in PS Mac general. Im a graphic designer for a company that  builds a ton of apps - apps for many different kinds of phones, tablets,  and set-top boxes.

  • Previews in grid view

    I installed LR 1.0, and imported photos from Photoshop Elements 5.0.2. The previews in grid view (both normal and extended cells) are updating every time I scroll the view, or start LR. It mean that first I see preview with ugly (pixelated) quality,