Deploy IP Printer Locally without a print server via GPO

I have a client that has 1 main site and 3 smaller satellite sites. They only have one (yes 1) server for all of their clients. There is a 100MB connection between so bandwidth is not an issue. The server is 2008 R2,
clients are a mix of XP and Windows 7. I have deployed client side extensions to the XP clients.
My project: Install a new network printer in each site (its the same printer for all 4 sites), configure clients to use printer in their site via GPO.
Each site has its own OU with users in their respective site OU. Normally, if this were a single site I could add the print services role, install the drivers for the printer on the print server, and use GP preferences;
User config -> Preferences -> Control Panel -> Printers -> add new TCP/IP and then apply this to the users OU. The problem is that it requires a local name and local path, which would require a local print server in each site. 
Is there a way to use GP to add a printer to each client computer (and set as default) throughout multiple sites, while only having the One server in 1 out of 4 sites? 
All help is greatly appreciated! 
NOTE: when I say site, I mean physical location, it is all one domain. 

I am really getting close to the deadline of new printers arriving so I will walk through exact steps I have taken to get this set up. 
Ok. I have a server running 2008 R2. I added the Print services role. 
Right click 'Printers' -> Add printer
select 'Add a TCP/IP Printer by IP address or hostname'
'Type of device' = 'Autodetect'
'hostname or IP address' = 'x.x.x.x' (IP address that printer will be set to)
'Port name' = 'x.x.x.x_2'
do NOT select 'auto detect printer driver'
 select 'Generic Network Card'
select 'Install new driver'
select 'Have Disk' and browse to driver
'Printer name' = Printer Name
select 'share this printer'
'Share name' = Printer Name
next, next, driver installs and printer installs, and finish. 
Now you have the printer installed and showing up under printers. 
Now, I right click printer and -> deploy with group policy
Browse to the OU where my user is located in ADUC, select the GPO that I have linked to that OU, click 'add' and click 'OK'.
Now, log in to a win 7 computer, gpupdate, printer shows up in devices and printers. I can't print to it obviously since it's not connected to the network yet. But, when I log in to an XP computer, run gpupdate, it does NOT populate in devices and printers. 
What am I doing wrong? 
Thank you in advance. 

Similar Messages

  • Deploying Printer Server via GPO (Windows Server 2008 R2)

    Hi guys,
    I having encountered problem while  deploying printer server via GPO. My operating system is Windows Server 2008 R2. See the details below:
    "one or multiple errors have occurred during the execution of a deply or remove printer connection problem"
    Anybody know's how to fixs this problem ASAP.
    Any suggestion or clarification would be great!
    Please advice me, thanks
    Regards,
    Bishelp

    Hi Bishelp,
    Firstly, please check the security tab of that printer, make sure your user account has access permission for it.
    To perform these procedures of deploy printer connections, you must be a member of the local Administrators group and have write access to Group Policy objects (GPOs) in the AD DS domain or the organizational unit (OU) to which you want to deploy printer
    connections. For more information please refer to following MS articles:
    Deploy Printer Connections
    http://technet.microsoft.com/en-us/library/cc731292.aspx
    In addition, it would be helpful if you could help to collect the following information:
    What is the detailed information about this error?
    What are the steps of deploying printer server?
    Regards,
    Lany Zhang

  • How to deploy disabled Firefox as the default PDF viewer via GPO

    I am trying to change the settings of 204 Windows 7 PCs. They all use Firefox and with have Adobe Acrobat XI. I would like to know how to use the Mozilla Administrative Template or how to create a GPO to change the default pdf viewer in Firefox to Acrobat XI.

    I'm having this problem too, except I'm trying to push it out to 400 PC's with 2-10 users per PC. i need a way to be able to configure it so when a user logs into the PC via our domain login Firefox will be automatically configured to open PDF's from Firefox in an Adobe Reader window, otherwise we have to manually configure it like FredMcD said, and that gets very frustrating after the 2nd PC

  • Cannot migrate users print queues to new print server

    I am needing to move the print queues on users computers to a new print server that I have set up by I am not able to do so. I have over 200 users at the office. I am thinking it is a problem getting to run it on the clients, but not sure where it is failing...
    To start... I have moved the print queues from Server 2003 to Server 2008 R2. The machines are both 64 bit. I was able to export the drivers and the print queues to the new server using the print migrate tool. The names of the printers are the same on both...
    The names of the print servers are different. I added a print queue to a test client and was able to print to it without a problem mapped to the new server, so that's not the problem.
    What I can't do is use the script (see below) to remap the clients to the new server. I have tried and configured the script as a user log on script, configured a group policy and placed my test user in the OU. Rebooted the machine, logged
    on with the test account but the print queues stay the same. I have even tried to run the script locally but still no joy... it runs but the queues stay the same. I used RSOP and see that the script is being applied... I am running Windows 7 Professional.
    I really need to get this resolved as the server is being decommissioned within the month.
    Option Explicit
    Dim from_sv, to_sv, PrinterPath, PrinterName, DefaultPrinterName, DefaultPrinter
    Dim DefaultPrinterServer, SetDefault, key
    Dim spoint, Loop_Counter, scomma
    Dim WshNet, WshShell
    Dim WS_Printers
    DefaultPrinterName = ""
    spoint = 0
    scomma = 0
    SetDefault = 0
    set WshShell = CreateObject("WScript.shell")
    from_sv = "\\srvprint_1" 'This should be the name of the old server.
    to_sv = "\\srvprint_2" 'This should be the name of your new server.
    'Just incase their are no printers and therefor no defauld printer set
    ' this will prevent the script form erroring out.
    On Error Resume Next
    key = "HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows\Device"
    DefaultPrinter = LCase(WshShell.RegRead (key))
    If Err.Number <> 0 Then
        DefaultPrinterName = ""
    else
    'If the registry read was successful then parse out the printer name so we can 
    ' compare it with each printer later and reset the correct default printer
    ' if one of them matches this one read from the registry.
    spoint = instr(3,DefaultPrinter,"\")+1 
    DefaultPrinterServer = left(DefaultPrinter,spoint-2)
        if lcase(DefaultPrinterServer) = from_sv then
            DefaultPrinterName = mid(DefaultPrinter,spoint,len(DefaultPrinter)-spoint+1)
            scomma = instr(DefaultPrinterName,",")
            DefaultPrinterName = left(DefaultPrinterName,scomma -1)
        end if
    end if
    Set WshNet = CreateObject("WScript.Network")
    Set WS_Printers = WshNet.EnumPrinterConnections
    'You have to step by 2 because only the even numbers will be the print queue's
    ' server and share name. The odd numbers are the printer names.
    For Loop_Counter = 0 To WS_Printers.Count - 1 Step 2
        'Remember the + 1 is to get the full path ie..
    \\your_server\your_printer.
        PrinterPath = lcase(WS_Printers(Loop_Counter + 1))
        'We only want to work with the network printers that are mapped to the original
        ' server, so we check for "\\Your_server".
        if lcase(LEFT(PrinterPath,len(from_sv))) = from_sv then
            'Now we need to parse the PrinterPath to get rhe Printer Name.
            spoint = instr(3,PrinterPath,"\")+1
            PrinterName = mid(PrinterPath,spoint,len(PrinterPath)-spoint+1)
            'Now remove the old printer connection.
            WshNet.RemovePrinterConnection from_sv+"\"+PrinterName
            'and then create the new connection.
            'Do not create c6100
            if lcase(PrinterName) <> "c6100" then
                WshNet.AddWindowsPrinterConnection to_sv+"\"+PrinterName
                'If this printer matches the default printer that we got from the registry then
                ' set it to be the default printer.
                if DefaultPrinterName = PrinterName then
                    WshNet.SetDefaultPrinter to_sv+"\"+PrinterName
                end if
            end if
        end if
    Next
    Set WS_Printers = Nothing
    Set WshNet = Nothing
    Set WshShell = Nothing

    Hi,
    àI added a print
    queue to a test client and was able to print to it without a problem mapped to the new server, so that's not the problem.
    àWhat I can't
    do is use the script (see below) to remap the clients to the new server.
    Based on your description, I understand that you have moved print queues to new print server via print migrate
    tool successfully. However, when use this script (Remap Printer Connections) to re-map Printer Connections, the script seems to not be ran as expected. Meanwhile,
    I noticed that you had ran the script locally. Did you find any error when ran this script?
    On current situation, this issue seems to be more related to this Remap Printer Connections script. I suggest
    that you would post it in
    Official Scripting Guys Forum. I believe we will get a better assistance there.
    If anything I misunderstand or any update, please don’t hesitate to let me know.
    Best regards,
    Justin Gu

  • Print Server Administration

    We have a SUN 6500 Enterprise Server running Solaris 8 which services all our branch office within the country
    I am trying to setup a SUN Blade as a Print Server in order to manage printers at the various remote locations.
    I need help on how to achieve this. I feel it should be possible as such is possible in a Windows network environment.
    Thank You,
    Aniekeme Etokimo

    Hi again, sorry, just realize the txt are scramble.  In summary, I setup a standalone w2k8 Enterprise R2 SP1 server. Installed Print and Document Service to make it a print servrer. I then delete the defaul MSX printer and its printer driver package
    to make it clean.  I then download Lexmark Universal PS3 Version 2 driver and install it by script.  it is all good.  as a member of local administrators group of the print server via AD, I can run Print Management on my windows 7 workstation
    and connect to the server and able to create new printer using the pre-installed driver as mentioned above.  I assigned the Manage Printers and Manage Server permission through the Print Server Properties from Print Management (this is done by Print Management
    on the server itself) to our level 2 staff so that they can add printer queue using the PMC on their workstation to the server without the need to RDP and log on to the server.  This is because they are not server administrators.  According to this
    docco Assigning Delegated Print Administrator and Printer Permission Settings in Windows Server 2008 R2, it should work but no, it didn't work.  it allowed the users going through the Add Printer wizard and right at the end it came up
    with the error message - Printer Driver was not installed. Access Denied.  I then add them to the local administrators group of the server, then they can.
    have I done something wrong or missing something?   Any helps would be greatly appreciated!  Thanks. Tu

  • Can't print from Mac to DeskJet D1530 over Linksys print server

    The print job and printer both hang when trying to print to the DeskJet D1530.
    I am using the drivers downloaded directly from HP and specifically for Snow Leopard.
    When connected directly via USB, the printer installs itself and prints reliably.
    However, this is a shared printer. The Mac has a wireless-G connection to a Linksys router, the router is connected to a Linksys print server via Ethernet. Then the printer is connected via USB to the print server.
    I have 2 Windows laptops that print reliably via this configuration.
    With the Mac, I configured it to use LPR over the IP address of the print server. It seems to connect to the print server and appears to be communicating with the printer. It even reports the ink levels in the cartridges. But when a print job is sent to the printer, the print status reports "Sending data file (0 bytes)" and the job just hangs unless a "cancel -a" is sent via terminal. It also prevents any other system from printing unless the printer and the print server are power cycled. I have occasionally coaxed a job out of the printer after the print server is power-cycled, however from the Mac's printer status, the job never completes and any subsequent print jobs will hang. I have to reboot the Mac to completely clear the print queue.
    I have look online for instructions on configuring the printer, but all of them so far have yielded the same result.
    This is not exactly an exotic setup, and it works with Windows systems. What am I doing wrong?

    It usually comes as a surprise to Windows users that there are two kinds of print drivers on OS X. The older type are called monolithic drivers because they have everything in one package - postscript interpreter and communication device (USB) driver. With this type, the manufacturer gets to include exactly the components needed for the printer. The driver you got from HP is this type, and it is limited to USB Only.
    To do network printing to a USB printer, you need a driver that allows more than just USB direct connection. You need a CUPS driver. One CUPS driver is Gutenprint, included in OS X by Apple. It may not include your model yet.
    Get updated Gutenprint or hpijs drivers from:
    http://www.linuxfoundation.org/collaborate/workgroups/openprinting/macosx
    or a commercial CUPS driver, printfab from:
    http://www.printfab.net

  • Wireless Computer, Wireless Router, Wireless Print Server

    I am having difficulty with a specific configuration trying to print wirelessly.
    I have no problem printing from my iBook G4, Power Mac Dual G4 750, Dell Notebook, or Compaq Presario Desktop using this configuration: Linksys Wireless-G router and Linksys Wireless-G Print Server.
    As long as the Print Server is connected to the Router via an ethernet cable, the network works fine - I can print from any computer.
    The problem I am encountering comes from the fact that I now want to use the Print Server with another printer that is a seperate room from the router (I don't want to connect it with an ethernet cable). This shouldn't be a problem since it's a wireless print server.
    I had always used a static IP to access and configure the router, but now that I have removed the ethernet connection I can't log in. In fact, when it is plugged into a different port on the router (via ethernet) I can't log into it either. When I reconnect it the original way, it is not problem.
    Running the original install software on my PCs doesn't help either.
    How can I make this work?
    Can my wireless computers (e.g. iBook with Airport Extreme wireless card) talk directly to the Print Server, or does it talk to the Print Server via the wireless router?
    I don't have an Airport base.
    Any help would be appreciated.

    I do not think I can help you with your question however I have the same router and print server and I too have never been able to get the print server to work wirelessly. It's a real kick in the head too because the linksys tech nubs just talk you around in a circle saying that the deivce is wireless but that you have to use the wire. I don't know maybe its me...
    Nonetheless I now have a mac laptop that works the the router but I can not get the powerbook to connect the the print server. I would be interested to know how you go your mac to work with you first printer.

  • Wireless print server cannot connect to router

    Hi - I just got the FiOS installed.  When I went to set up my print server via wireless, it has failed.  It has previously been connected via Ethernet and worked just fine.  The print server thinks its connect to the AP/router but the FiOS router does not see it.  I went into the system logs and see the following errors:
    Feb 13 09:56:29 2009 System Log Message daemon.warn sys_if_ioctl_mii_execute:507: Both tried MII ioclts 8947/89F0 failed: Operation not supported.
     [repeated 2 times, last time on Feb 13 09:56:29 2009]
    Feb 13 09:55:06 2009 System Log Message daemon.warn DNS: unknown PTR name format
     [repeated 4 times, last time on Feb 13 09:55:51 2009]
    Any ideas?  
    Solved!
    Go to Solution.

    I figured out how to fix this.  Took a while but here it is if other run into the problem:
    http://forum.verizon.com/vrzn/board/message?board.id=FiOS_Internet&message.id=5457&jump=true

  • Can't connect to printer via usb print server

    So I've tried to connect to an EPSON stylus printer from my iMac via a print server with no success.
    Here's some info to help focus the questions/help:
    iMac running Mavericks, Epson SP R200 printer, Belkin Play router, Toshiba Satellite laptop, Level1 USB print server
    Win8.1 laptop prints via print server just fineso IP, port, firewall issues on router/print server side are ruled out.
    I have the fire wall off on the iMac
    I've quadruple checked IP and subnet numbers of iMac to rest of network, and they all jive.
    I can pull up the config page of the print server via Safari on the iMacso connectivity is there
    I previously had the printer attached directly to the iMac, and successfully printed.
    I've tried to add the printer via IP > LPD method AND Advanced > Windows printer via spoolss
    I can get as far as adding the printer, but as soon as I attempt to print a test page the printer has a "filter" error, or some "color" error, the job just goes into nothingness, or the job just sits there and the que is paused.
    This is very frustrating to put it nicely.
    -Vince

    What driver are you using? - Don't know if you remember, but you had to be using Gutenprint, because Epson's driver for USB-only printers, only works via USB.
    http://gimp-print.sourceforge.net/MacOSX.php

  • GPO for Print Server Security settings?

    Hi forum,
    I am setting up a specific OU for print servers and have a GPO assigned to this.
    As we need to apply certain roles to some AD groups we have a need to reflect this to the Print Server Security settings so it gets reflected to the print queues.
    Has anyone found a way to have a GPO to alter the Security settings under the Print Server porperties?
    Thanks,
    David

    Hi David,
    Based on your description, did you mean that want to configure permission of a Print Server via group policy?
    It seems that the target can’t be achieved via group policy. However, you may be able to add some security groups to print servers by using Windows PowerShell. For more details, please refer to following article and check if can help you.
    Weekend
    Scripter: Add Security Groups to Print Servers by Using PowerShell
    If anything I misunderstand or any update, please don’t hesitate to let me know.
    Hope this helps.
    Best regards,
    Justin Gu

  • Deployment without restarting the server

    If we change java files,why we need to restart the server,I am using JBoss-2.2.1_Tomcat-3.2.1.Can we deploy the java file without restarting the server?Thanks in Advance

    Yes we may
    All u need to do is change
    TOMCAT: %WEBSERVER_HOME%\conf\context.xml
    JBOSS: %WEBSERVER_HOME%\server\default\deploy\jbossweb-tomcat55.sar\context.xml
    file from
    TOMCAT:
    =======
    <!-- The contents of this file will be loaded for each web application -->
    <Context >
        <!-- Default set of monitored resources -->
        <WatchedResource>WEB-INF/web.xml</WatchedResource>
        <!-- Uncomment this to disable session persistence across Tomcat restarts -->
        <!--
        <Manager pathname="" />
        -->
    </Context>To
    <!-- The contents of this file will be loaded for each web application -->
    <Context reloadable="true" >
        <!-- Default set of monitored resources -->
        <WatchedResource>WEB-INF/web.xml</WatchedResource>
        <!-- Uncomment this to disable session persistence across Tomcat restarts -->
        <!--
        <Manager pathname="" />
        -->
    </Context>JBOSS :
    ======
    <!-- The contents of this file will be loaded for each web application -->
    <Context cookies="true" crossContext="true">
       <!-- Session persistence is disable by default. To enable for all web
       apps set the pathname to a non-empty value:
       <Manager pathname="SESSIONS.ser" />
       To enable session persistence for a single web app, add a
       WEB-INF/context.xml
       -->
       <Manager pathname="" />
       <!-- Install an InstanceListener to handle the establishment of the run-as
       role for servlet init/destroy events.
       -->
       <InstanceListener>org.jboss.web.tomcat.security.RunAsListener</InstanceListener>
    </Context>to
    <!-- The contents of this file will be loaded for each web application -->
    <Context reloadable="true"  cookies="true" crossContext="true">
      <!-- Session persistence is disable by default. To enable for all web
       apps set the pathname to a non-empty value:
       <Manager pathname="SESSIONS.ser" />
       To enable session persistence for a single web app, add a
       WEB-INF/context.xml
       -->
       <Manager pathname="" />
       <!-- Install an InstanceListener to handle the establishment of the run-as
       role for servlet init/destroy events.
       -->
       <InstanceListener>org.jboss.web.tomcat.security.RunAsListener</InstanceListener>
    </Context>

  • CUPS Printing Server Discoverable by Windows Machines

    I have a server running archlinux on it with a CUPS server. It's used to host a USB printer as a network printer. It can be easily printed to via Linux, Mac, and Windows machines if it is hand configured on each client using the available IP address. I would like to make the printer discoverable on windows machines, i.e: the client:
      1. opens control panel
      2. goes to "add a printer"
      3. selects "network printer"
      4. the printer on the archlinux printer server (via CUPS) displays to be setup on the client
    I've done a bit of research and I've found that Samba holds a solution but I know nothing about Samba and according to the Archwiki the default smb.conf file holds the proper configuration for printer sharing (although I'm still unsure if this method is required. Also to note the default smb.conf file does not solve my issue).

    ratcheer wrote:
    I think Avahi is what provides that on Arch.
    https://wiki.archlinux.org/index.php/Avahi
    Tim
    This looks promising thanks! Do you know how avahi need to be configured to make it work with CUPS? Also, is Samba required for the printer to broadcast with avahi?
    I've also found cups-browsed however it doesn't seem to work. Below is my /etc/cups/cups-browsed.conf if it will help any.
    BrowseRemoteProtocols DNSSD,CUPS
    BrowseLocalProtocols CUPS,DNSSD
    BrowseProtocols CUPS,DNSSD
    AutoShutdown avahi
    dejawu wrote:
    You can try the following. I'm not on a network with a server running CUPS so I'm not sure these steps are verbatim, but hopefully this puts you in the right direction:
    1. Go to your CUPS web interface. It should be on port 631. If this is not open or accessible, modify your CUPS config so that it is: http://hplipopensource.com/node/231
    2. Go to Printers
    3. Go to the page for the printer you want to remote-print to, and grab the URL of that printer's page.
    4. On your Windows machine, when it begins to scan for printers, choose "My printer was not displayed in this list."
    5. Choose the option to input a URL, and paste the URL of your printer.
    6. Select your driver. Run Windows update if needed.
    7. You should now be able to print to that printer over the network.
    This is what my current fix is (and it works quite well), thanks for the suggestion though! The server is hosted in a public-ish place and there are various end users who aren't computer savy. The issue is one of convenience as most end users don't know how to follow directions correctly and "IT support" (which is just myself) is very limited.
    I'm not concerned about security currently (I'll worry about that later).
    Thanks for the responses!

  • Deploy an Integration Object from 'Local' Tools to Siebel Server

    Hi,
    I have created a Integration Object on my Local Siebel Tools.
    What I would like is to 'Deploy' this Integration Object from my Local Siebel Tools to the Server database..?
    & How to do this? Clicking Deploy to RunTime database only deploys to my Local, rather than the server?

    Hi,
    In tools from 'View' menu select 'Options' there you will find 'Object explorer' tab
    click on it there you will find just check the box and it will be visible.

  • The domain users without administrative permission cannot install printers shared on printer server

    Dears
    We have a printer server that OS is Windows server 2003 .And all clinets are installed windows 7.Now,the domain users cannot installed printers shared on the printer server.When i logon the clinent computer with a domain user and access printer server by
    URL \\192.168.37.1 ,i can see all printers shared on the printer server.Then i double click on printer to install it on client computer.It will ask me to input user name and password of local administrator .  
    How to install the printers with domain user directly. Thanks

    refer step #8:
    http://blogs.msdn.com/b/7/archive/2011/07/11/allowing-standard-users-to-install-network-printers-on-windows-7-without-prompting-for-administrative-credentials.aspx
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • Create Simple Printable SQL Reports in APEX 3.2 Without a Print Server

    Oracle Apex 3.2
    Oracle 11g
    OHS
    I thought I'd post an answer on how to get a printable SQL report in Oracle Apex without having to configure a print server. I'm sure that similar things have been posted in various other places, but I found the documentation for using custom row templates (to create a printable report) to be incomplete at best. For my needs, I was not looking for an awe inspiring report printout, but rather simple directory information printouts. For example, if you wanted a printable report to look like this:
    =================================
    CURRENT ACTIVE EMPLOYEES REPORT
    =================================
    First Name: Bob                  Employee ID: 0000000000
    Last Name: Swarts              Company Credit Card Number: 0000-0000-0000-0000
    Middle Initial: F                  Social Security Number: 000-00-0000
    First Name: Sue                  Employee ID: 1111111111
    Last Name: Johnson           Company Credit Card Number: 1111-1111-1111-1111
    Middle Initial: G                 Social Security Number: 111-11-1111
    etc.....In MS Access, doing this is very easy. From what I understand, this is also very easy to do this using PDF software with a print server. However, if you are like me, you don't want to waste time and money by obtaining and configuring a print server (even if it is free). However, never fear because you can create simple reports like this with relatively minimalistic effort; and you can do so without having to configure a print server.
    1.) Create a new page
    2.) Create a new sql query report region on the page
    3.) Make your query just as you would normally.
    For this example the query would be:
    select first_name, employee_id, last_name, company_credit_card_number, middle_initial, social_security_number from employee_table4.) Go to "Shared Components"
    5.) Under "User Interface" click on "Templates"
    6.) Click on the "Create" button
    7.) Select "Report"
    8.) Select "From Scratch"
    9.) For the "Template Class," choose one of the "custom" classes. For the "Template Type," choose "Named Column"
    10.) Click the "Create" button
    11.) Now that you created a custom row template, go back to "Shared Components" and then to "Templates"
    12.) Find your custom template and click on it
    CUSTOM TEMPLATE HOW TO
    1.) In the "Row Template 1" textbox, you are going to create some custom css that will display the data on the page. The css to make the report look like the report above would be:
    <div style = text-align: justify">
    <table>
    <tr>
    <td style = "width: 200px"><b>First Name: #1#</b></td>
    <td style = "width: 225px">&nbsp</td>
    <td style = "width: 215px"><b>Employee Id: #2#</b></td>
    <tr>
    <td style = "width: 200px">Last Name: #3#</td>
    <td style = "width: 225px">&nbsp</td>
    <td style = "width: 215px">Company Credit Card Number: #4#</td>
    <tr>
    <td style = "width: 200px">MI: #5#</td>
    <td style = "width: 225px">&nbsp</td>
    <td style = "width: 215px">Social Security Number: <b>#6#</b></td>
    </tr>
    </table>
    <p style = "page-break-after: always">----------------------------------------------------------------</p>
    </div>
    {code}
    As you probably figured out, the numbers between the two pound signs ("#") are substitution strings for the variables in your select query in the SQL report.  As you have also probably noticed, the "page-break-after: always" line will always make it so that only one report is shown on a page.  To fix this, we will need to use logic and row template 2.
    2.)  For the "Row Template 1 Condition," select "Use Based on PL/SQL Expression" from the select list.
    3.)  In the textbox for the row template 1 expression enter in the following:  {code}substr('#rownum#',-1) = 0 or substr('#rownum#',-1) = 5{code}
    ***** This condition will make sure that this template is applied when the last digit in the row number is either a "0" or a "5."  So, only 5 reports will be displayed per page.
    4.)  Now go down to "Row Template 2" and enter in the following in the textbox:
    {code}
    <div style = text-align: justify">
    <table>
    <tr>
    <td style = "width: 200px"><b>First Name: #1#</b></td>
    <td style = "width: 225px">&nbsp</td>
    <td style = "width: 215px"><b>Employee Id: #2#</b></td>
    <tr>
    <td style = "width: 200px">Last Name: #3#</td>
    <td style = "width: 225px">&nbsp</td>
    <td style = "width: 215px">Company Credit Card Number: #4#</td>
    <tr>
    <td style = "width: 200px">MI: #5#</td>
    <td style = "width: 225px">&nbsp</td>
    <td style = "width: 215px">Social Security Number: <b>#6#</b></td>
    </tr>
    </table>
    <p>----------------------------------------------------------------</p>
    </div>look familiar? that is because it exactly the same code as above, except without the page-break-after piece.
    5.) For the "Row Template 2 Condition," select "Use Based on PL/SQL Expression" from the select list.
    6.) In the textbox for the row template 2 expression enter in the following: substr('#rownum#',-1) != 0 or substr('#rownum#',-1) != 5***** This condition will make sure that this template is applied when the last digit in the row number IS NOT a "0" or a "5."
    7.) Scroll down to column headings and enter this in the textbox for the "Column Heading Template": OMIT
    8.) Click the "Apply Changes" button
    9.) Now go back to your application and the page you want to apply the custom report to
    10.) On the report, click on the report tab
    11.) Scroll down to "Layout and Pagination"
    12.) Click on the "Report Template" select list
    13.) Select your custom template
    14.) Click the "Apply Changes" button and run the page
    Try printing the report, if it does not print correctly, try it in Opera, Safari, Internet Explorer, Firefox, and Google Chrome. Please note that it is my understanding that only Firefox does not understand the css "page-break-after: always"
    If needed, add some css to the page to hide tabs and other items when you print.
    ~Andrew Schulltz

    DOH. Too much copy/paste.
    In my code, I was setting an application variable to contain the email address I was retrieving from AD. Once commented out, it worked fine.
              IF l_attr_name = 'mail' THEN
                 APEX_UTIL.SET_SESSION_STATE('F111_USER_EMAIL',l_vals(i));
              END IF;

Maybe you are looking for