Printing to Excel Article by Tobias Kaufmann

Does anyone know where to get the classes that need to be imported that are referenced in the printing to excel article by Tobias Kaufmann?  I am interested in trying this technique, but cannot locate the classes that are mentioned in the article.  Any help to get me going in the right direction would be very much appreciated.  The article is located at https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/biw/business intelligence web printing with excel.pdf

Thanks alot to you both Yogen and Kaufmann...
I tried as you mentioned with Text element in the header section it is not working and also tried with the REPTXTLG .. botht the cases it is not promting me with the dialog box at all and hanging just like that... If i remove the text element it is working fine and prompting me with dialog box to open the excel.
I am attaching my code here, Could you please look at this code and guide me if i am doing any mistake in this...
Thanks in advance for your help
<HTML>
<!-- BW data source object tags -->
<object>
         <param name="OWNER" value="SAP_BW"/>
         <param name="CMD" value="SET_DATA_PROVIDER"/>
         <param name="NAME" value="DATAPROVIDER_1"/>
         <param name="DATA_PROVIDER_ID" value="YEA_FI_ZMCSPLPL_SUM_VIEW_V1"/>
         DATA_PROVIDER:             DATAPROVIDER_1
</object>
<object>
         <param name="OWNER" value="SAP_BW"/>
         <param name="CMD" value="SET_PROPERTIES"/>
         <param name="TEMPLATE_ID" value="ZTEST_WEB_TEMP2"/>
         <param name="SUPPRESS_WARNINGS" value="X"/>
         <param name="VARIABLE_SCREEN" value="X"/>
         TEMPLATE PROPERTIES
</object>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft DHTML Editing Control">
<title>Summary P&L Web Report </title>
<link href="/sap/bw/Mime/BEx/StyleSheets/BWReports.css" type="text/css" rel="stylesheet"/>
<script language="JavaScript">
SAPBWAddToMenu("Printwith Excel","myMenuProcessor","1","","","X","BOTTOM","","");
// Command Processing
function myMenuProcessor(parameter,cell_type,filter,parameter1,parameter2,item,dataprovider,x,y)
switch (parameter) {
case "1":
SAPBWOpenURL(SAP_BW_URL_Get() +"&CMD=PROCESS_HELP_WINDOW&help_service=PRINT_WITH_EXCEL&item=TABLE_1&subcmd=PRINT_EXCEL");
break;
</script>
<BODY>
<table><tr><td class="SAPBEXBtnStdBorder" cellspacing="0" cellpadding="0" border="0">
<table><tr><td class="SAPBEXBtnStd" cellspacing="0" cellpadding="0" border="0">
<A href="<sap_bw_url
cmd='PROCESS_HELP_WINDOW'
help_service='PRINT_WITH_EXCEL'
item='TABLE_1'
subcmd='PRINT_EXCEL'>">
Print with Excel</A>
</td></tr></table>
</td></tr></table>
<object>
         <param name="OWNER" value="SAP_BW"/>
         <param name="CMD" value="GET_ITEM"/>
         <param name="NAME" value="TABLE_1"/>
         <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID"/>
         <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
         <param name="GENERATE_CAPTION" value=""/>
         <param name="ALT_STYLES" value=""/>
         <param name="TARGET_DATA_PROVIDER_1" value="DATAPROVIDER_1"/>
         <param name="HELP_SERVICE" value="PRINT_WITH_EXCEL"/>
         <param name="HELP_SERVICE_CLASS" value="ZCL_RSR_XLS_HELP_WINDOW_PRINT"/>
         ITEM:            TABLE_1
</object>
<P></P>
<!-- Settings for Web Printing with Excel
// header with logo, footer, page orientation, margin, ...
@page
{mso-header-data:"&L&G&C&\0022Arial\,fed\0022&12&14Summary P and L>&[DATAPROVIDER_1/REPTXTLG]";
     mso-footer-data:"Confidential ";
     margin:1.0in .75in 1.0in .75in;
     mso-header-margin:.5in;
     mso-footer-margin:.5in;
     mso-horizontal-page-align:center;}
// fit to page, grid lines, logo (header picture)
     <x:Print>
          <x:FitWidth>1</x:FitWidth>
          <x:FitHeight>0</x:FitHeight>
          <x:ValidPrinterInfo/>
          <x:Scale>80</x:Scale>
          <x:HorizontalResolution>600</x:HorizontalResolution>
          <x:VerticalResolution>600</x:VerticalResolution>
     </x:Print>
// page breaks
     <x:PageBreaks>
          <x:ColBreaks>
               <x:ColBreak>
                    <x:Column>10</x:Column>
                    <x:RowEnd>78</x:RowEnd>
               </x:ColBreak>
               </x:ColBreaks>
          <x:RowBreaks>
               <x:RowBreak>
                    <x:Row>48</x:Row>
                    <x:ColEnd>10</x:ColEnd>
               </x:RowBreak>
          </x:RowBreaks>
     </x:PageBreaks>
// column widths
     <x:ColWidths>
          <col width=180 style='mso-width-source:userset'>
          <col style='mso-width-source:auto'>
     </x:ColWidths>
// Repeated Rows
     <x:RepeatedRows>$1:$2</x:RepeatedRows>
// Repeated Cols
     <x:RepeatedCols>$A:$A</x:RepeatedCols>
// BW parameters
     <x:BW>
          <hierarchy_icons hide=X>
     </x:BW>
End Settings for Web Printing with Excel -->
</BODY>
</html>

Similar Messages

  • Web printing with Excel - multiple excel sheets

    Hi @ all,
    I have implemented a web report with several tabpages. Now I would like to export them all with web printing solution from tobias kaufmann "HowToWebPrintingWithExcel".
    The Problem is, I would like to get for each tabpages an excel sheet.
    Does anyone know, how to solve the problem?
    Thanks in advance.
    Claudia

    Any new ideas?

  • I am having trouble printing to an Epson XP600.  It is a new printer and it has been replaced because we thought it was the printer.  Basically, when I print from Excel, only color will print.

    I am having trouble printing to an Epson XP600.  We have replaced the printer and we are still having the same problem.  When I try to print from Excel, only the color prints.  Any suggestions?

    Has anyone else had issues not being able to print black (such as a document)?  My photos print great, but when I try to print a simple black-ink document, it won't work. Any suggestions?

  • Report printing in excel with multiple sheets

    Hi Experts,
         I am working in Oracle Reports 10g.  I need to print the report in Excel....
    For this i have created .JSP file and now printing in Excel(Sheet1).
    My requirement is i need to print the report in multiple sheets.
    For example if i run the departments report then the generated excel file should be as below
    (Sheet1 - HR, Sheet2 - FINANCE, Sheet3 - MARKETING, etc.,)
    How can i do this?
    Thanks in Advance.

    Hi All,
       Is this possible  Report printing in excel with multiple sheets??
    Please give solution for my above post Report printing in excel with multiple sheets..
    Thanks,
    Su.gi

  • How to print an excel file (2010 version) with multiple tabs into a pdf file with bookmarks (acrobat 9). I was able to do this easily using excel (2007 version).

    Recently I got a new laptop, with excel 2010 version and acrobat 9 standard.
    I could no longer print (save as) an excel file with multiple tabs into a pdf file with bookmarks.
    My old computer has excel 2007 version and acrobat 9 standard.
    Print an excel file into pdf with bookmarks was a piece of cake.
    Both machine has the same add-in -- Acrobat PDFMaker Office COM addin
    Thanks if anyone could help me with this.
        Tom

    You need to upgrade Acrobat to a newer version.
    On Thu, Oct 30, 2014 at 4:12 PM, excel-pdf-bookmarks <

  • How can i print an excel spreadshee​t file by clicking a button on the front panel

    i have designed a vi that logs data into an excel spreadsheet. i want to take print out of the file when the user clicks a button on the front panel. what to do if there is very large amount of data.

    Preet,
    Printing the Excel sheet is just an ActiveX method call to print the worksheet. To add data to the worksheet, you already have the reference, just call a print method. As for handling large amounts of data, that is a vague question. The data will print how ever you placed it on the worksheet. If what you mean is that you don't want to print out 25 pages every time, the print method has options to only print specific pages or ranges. You may want to play around with a sample spreadsheet to learn the printing options. For help on the ActiveX functions, make sure you have the Visual Basic help installed for Excel.
    Randy Hoskin
    Applications Engineer
    National Instruments
    http://www.ni.com/ask

  • Unable to print in excel format

    Hi,
    I develop report in xml publisher and my apps version is 11.5.10.2
    But my report is not printing in excel format.
    Any idea on this....
    Regards
    Zaheer

    Hi Zaheer;
    Please check Hussein Sawwan greatest previous post:
    Re: Unable to View Excel Output File Created by XML Publisher
    Regard
    Helios

  • Can't print preview or print in Excel or PowerPoint

    Gosh, I've been so busy fighting wireless networking issues with Leopard, it wasn't until today that I finally had a need to print an Excel spreadsheet and much to my slowly building frustration with Leopard, that too is a no-go in Leopard. In either Excel or PowerPoint, using "print preview" yields only blank pages and if you attempt to print the document, you get precisely the same, just blank pages.. Such is not the case in either Word or Entourage... Those both print ok... What I also find somewhat ironic is if I dump those same Excel spreadsheets into Parallels under Windows XP and the pc version of Excel, I can print the documents with no problem... Ouch... On my mac I'm running the most current version of Office (11.3.9) and my printer is a Brother PrinterMFC5440CN. I've encountered this same printing issue on both of my macs, a MacBook Pro and a G4, both running Mac OS X 10.5.1... Anyone have any possible solutions??? thanks... bob...

    Hi Robert,
    Just wondering if you sorted out this problem? I am new to Macs and recently bought an iMac after being a PC and Windows user for years. I have never had problems with printing but very frustratingly do now with the Mac. I have an Epson R265 and can print from photoshop, entourage, excel but not from word.
    If you had any success with this problem could you let me know.
    thanks very much
    Sara Bell

  • Web Printing With Excel

    I'm trying to web printing with excel. I implemented the classes and also applied to code that appears in the how to document.
    The problems comes that some of the code such as footer works and all others doesn't work. Any ideas how this work?
    <HTML>
    <!-- BW data source object tags -->
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_DATA_PROVIDER"/>
             <param name="NAME" value="DP"/>
             <param name="QUERY" value="ASXNAMCUBE_I_SMC_505"/>
             <param name="INFOCUBE" value="SXNAMCUBE"/>
             DATA_PROVIDER:             DP
    </object>
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_PROPERTIES"/>
             <param name="TEMPLATE_ID" value="Z_WEB_PRINTING"/>
             <param name="USE_PERSONALIZATION" value="X"/>
             <param name="VARIABLE_SCREEN" value="X"/>
             <param name="VARIABLES_CLEAR" value="X"/>
             <param name="ENABLE_OPEN_WINDOW" value="X"/>
             <param name="NO_SESSION_COOKIE" value="X"/>
             <param name="MENU_EXCHANGE_OBJECTS" value="X"/>
             <param name="MENU_CALCULATE_RESULT" value=""/>
             <param name="MENU_CALCULATE_VALUE" value=""/>
             <param name="MENU_BOOKMARK" value="E"/>
             <param name="MENU_PERSONALIZE" value="E"/>
             <param name="MENU_VARIABLE_SCREEN" value="X"/>
             <param name="USE_PAGE_WRAPPER" value="X"/>
             <param name="RRI_DISPLAY_TARGET" value=""/>
             <param name="ENHANCED_MENU" value="X"/>
             <param name="SNIPPET_OPERATIONS" value=""/>
             TEMPLATE PROPERTIES
    </object>
    <HEAD>
    <META NAME="GENERATOR" Content="Microsoft DHTML Editing Control">
    <TITLE><object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="TEXTELEMENTS_6"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_TEXT_ELEMENTS"/>
             <param name="DATA_PROVIDER" value="DP"/>
             <param name="BORDER_STYLE" value="NO_BORDER"/>
             <param name="GENERATE_LINKS" value=""/>
             <param name="GENERATE_CAPTION" value=""/>
             <param name="SHOW_COMMON_ELEMENTS" value=""/>
             <param name="SHOW_FILTERS" value=""/>
             <param name="SHOW_VARIABLES" value=""/>
             <param name="ELEMENT_TYPE_1" value="COMMON"/>
             <param name="ELEMENT_NAME_1" value="REPTXTLG"/>
             <param name="ONLY_VALUES" value="X"/>
             ITEM:            TEXTELEMENTS_6
    </object></TITLE>
          <link href="/sap/bw/Mime/BEx/StyleSheets/BWReports.css" type="text/css" rel="stylesheet"/>
          <link href="/sap/bw/Mime/BEx/StyleSheets/BWReports.css" type="text/css" rel="stylesheet" media="print"/>
    </HEAD>
    <BODY>
    <table width="100%" cellspacing="0" cellpadding="5" border="0">
    <TR>
        <TD vAlign=top><P align=left><IMG src="/sap/bw/Mime/BEx/Icons/kcc20white2.gif"></P></TD>
    <TD vAlign=top>
          <P align=center><FONT face=Arial color=#000000 size=5><STRONG>
    <!-- Text Element --->
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="TEXTELEMENTS_3"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_TEXT_ELEMENTS"/>
             <param name="DATA_PROVIDER" value="DP"/>
             <param name="BORDER_STYLE" value="NO_BORDER"/>
             <param name="GENERATE_LINKS" value=""/>
             <param name="GENERATE_CAPTION" value=""/>
             <param name="SHOW_COMMON_ELEMENTS" value=""/>
             <param name="SHOW_FILTERS" value=""/>
             <param name="SHOW_VARIABLES" value=""/>
             <param name="ELEMENT_TYPE_1" value="COMMON"/>
             <param name="ELEMENT_NAME_1" value="REPTXTLG"/>
             <param name="ONLY_VALUES" value="X"/>
             ITEM:            TEXTELEMENTS_3
    </object></P></STRONG></FONT></TD>
    <TD vAlign=top>
    <!-- Display Report Date Information --->
    <P align=right>
    <FONT color=#000000>
    Report Date:
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="TEXTELEMENTS_4"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_TEXT_ELEMENTS"/>
             <param name="DATA_PROVIDER" value="DP"/>
             <param name="BORDER_STYLE" value="NO_BORDER"/>
             <param name="GENERATE_LINKS" value=""/>
             <param name="GENERATE_CAPTION" value=""/>
             <param name="SHOW_FILTERS" value=""/>
             <param name="SHOW_VARIABLES" value=""/>
             <param name="ELEMENT_TYPE_1" value="COMMON"/>
             <param name="ELEMENT_NAME_1" value="SRDATE"/>
             <param name="ONLY_VALUES" value="X"/>
             ITEM:            TEXTELEMENTS_4
    </object>
    </FONT></P>
    </TD></TR>
    </table>
    <table><tr><td class="SAPBEXBtnStdBorder" cellspacing="0" cellpadding="0" border="0">
    <table><tr><td class="SAPBEXBtnStd" cellspacing="0" cellpadding="0" border="0">
    <A href="<SAP_BW_URL CMD='PROCESS_HELP_WINDOW' HELP_SERVICE=HELP_SERVICE='HELP_SERVICE_PRINT' ITEM='TABLE_1' SUBCMD='PRINT_EXCEL'>">Web Printing with Excel</A>
    </td></tr></table>
    </td></tr></table>
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="GR1GR2NavBlock"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_NAV_BLOCK"/>
             <param name="DATA_PROVIDER" value="DP"/>
             <param name="CLOSED" value="X"/>
             <param name="WIDTH" value="600"/>
             <param name="HORIZONTAL_NUMBER" value="2"/>
             <param name="FILTER_VALUE_LENGTH" value="20"/>
             ITEM:            GR1GR2NavBlock
    </object>
    <table>
    <tr>
    <td valign="top">
    <!-- Filter Values --->
    <FONT face=Arial color=#000000 size=1>
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="GR1Filter_1"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_TEXT_ELEMENTS"/>
             <param name="DATA_PROVIDER" value="DP"/>
             <param name="BORDER_STYLE" value="NO_BORDER"/>
             <param name="GENERATE_CAPTION" value=""/>
             <param name="SHOW_COMMON_ELEMENTS" value=""/>
             <param name="SHOW_VARIABLES" value=""/>
             <param name="ONLY_VALUES" value="X"/>
             ITEM:            GR1Filter_1
    </object>
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="GR1Filter"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_FILTER"/>
             <param name="DATA_PROVIDER" value="DP"/>
             <param name="BORDER_STYLE" value="NO_BORDER"/>
             <param name="GENERATE_CAPTION" value=""/>
             <param name="GENERATE_LINKS" value=""/>
             <param name="ONLY_VALUES" value="X"/>
             ITEM:            GR1Filter
    </object>
    </FONT></td>
    </tr>
    </table>
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="TABLE_1"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID"/>
             <param name="DATA_PROVIDER" value="DP"/>
             <param name="HELP_SERVICE" value="HELP_SERVICE_PRINT"/>
             <param name="HELP_SERVICE_CLASS" value="ZCL_RSR_XLS_HELP_WINDOW_PRINT"/>
             ITEM:            TABLE_1
    </object>
    <STYLE type=text/css media=print>
    @page
    {mso-headerdata:"&L&G&C&\0022Arial\,fed\0022&12&[DP/REPTXTLG]";
    mso-footer-data:"&R&P\/&N";
    margin:1.0in .75in 1.0in .75in;
    mso-header-margin:.5in;
    mso-footer-margin:.5in;
    mso-page-orientation:landscape;}
    <x:print>
    <x:headerpicture>
    <x:location>Left</x:Location>
    <x:source>http://www.sap.com/global/images/sap_logo.gif
    </x:Source>
    <x:height>24.75</x:Height>
    <x:width>86.25</x:Width>
    <x:lockaspectratio/>
    <x:colortype>Automatic</x:ColorType>
    <x:fitwidth>2</x:FitWidth>
    <x:fitheight>2</x:FitHeight>
    <x:gridlines/>
    </x:HeaderPicture>
    </x:Print>
    <x:pagebreaks>
    <x:colbreaks>
    <x:colbreak>
    <x:column>9</x:Column>
    <x:rowend>78</x:RowEnd>
    </x:ColBreak>
    </x:ColBreaks>
    <x:rowbreaks>
    <x:rowbreak>
    <x:row>42</x:Row>
    <x:colend>15</x:ColEnd>
    </x:RowBreak>
    </x:RowBreaks>
    </x:PageBreaks>
    <x:colwidths>
    <col style='mso-width-source:auto'>
    <col style='mso-width-source:auto'>
    <col style='mso-width-source:auto'>
    <col width=200 style='mso-width-source:userset'>
    <col width=100 style='mso-width-source:userset'></x:ColWidths>
    <x:repeatedrows>
    $2:$2</x:RepeatedRows>
    <x:repeatedcols>
    $B:$B</x:RepeatedCols>
    <x:bw>
    <hierarchy_icons hide= designtimesp=26251></x:BW></style>
    </BODY>
    </HTML>
    Thanks,
    Teresa.

    Did you ever get your web template to print properly?
    Regards,
    Jay

  • When printing in Excel It is always want to use the acrobat X pro trial, which the trial is expired. I do not want to use acrobat X pro trial anymore. How can I reset it and use simple acrobat to print my PDF document?

    When printing in Excel It is always want to use the acrobat X pro trial, which the trial is expired. I do not want to use acrobat X pro trial anymore. How can I reset it and use simple acrobat to print my PDF document?

    Hi screen name,
    Adobe PDF printer gets installed when you install Acrobat 10 Pro.
    To use this printer you need to purchase Acrobat. Once the trial period is over you cannot use the printer to create pdf files.
    An alternative way for you is to utilize Microsoft's own inbuilt pdf engine.
    You can simply open the file and select 'Save as' and in the type list select 'pdf'
    Please refer : http://office.microsoft.com/en-in/excel-help/save-as-pdf-HA010354239.aspx
    Regards,
    Rave

  • How do I print an excel worksheet so the rows have contrasting shades making it easy to read data across the page?

    I want to print an excel worksheet so that the rows are shaded light then dark, light then dark. This helps when reading the data across the page on any selected line. Where do I select that option?

    sophia beth wrote:
    I want to print an excel worksheet so that the rows are shaded light then dark, light then dark. This helps when reading the data across the page on any selected line. Where do I select that option?
    Not sure if it's any better in the version you have, but in earlier versions, you would have to manually select alternating rows using cmd-click in the row numbers and then fill the cells with the lightest possible shade in the fill palette.  Again, in an earlier version, it is possible to use the format painter (use your Excel help for details) to select several rows formatted with the shading and paint that format to an equivalent number of rows elsewhere.

  • HOW TO PRINT  THE EXCEL CELL COMMENT IN JAVA SWING FRAME ?

    How to print the excel cell comment in java swing frame
    user can print the data of cell with comment in bracket in java swing frame.
    please make one java code to read an excel spreed sheet and print the output in Java swing frame as follows
    EMP NO - 1, 2, 3
    EMP NAME - aname (amitesh:very good), bname (amitesh: average), cname (amitesh: very bad)
    EMP AGE - 11, 22, 33
    EMP DESG - ad, bd, cd
    Note: the bracket portion is the excel comments put in that cell

    hello everyone i'm new to this forum..how are you all...
    Jack Brosnan
    [mobile phone|http://www.mobilephonesforsale.net.au/apple-iphone-f-2.html]

  • Download-to-excel vs. web print to excel

    There is an old how-to guide about downloading web report to Excel and it worked fine. Now we are implementing the web print to Excel function. However, two concerns:
    1) what's the advantage of web print to excel over download to excel function?
    2) in web print to excel, the header is fine but the cells of rows are all aligned in first column vertically! I only imported the classes and used the HELP class but did not configure the XML tags.

    Using the old How to guide (2.0B) you will only download the data on the screen, if you had multiple pages it will not download any of those extra pages.
    The new Excel print is based on MS Office HTML, here you have more options for setting print options by default in the template, like page orientation, repeating column headers, paper size (legal, A4 etc..), report header etc... you can also have a print specific template using the device types.
    One more advantage over the 3.0B Excel download is if you use Table APIs for manipulating data it will be taken into account with the new soltuion. This also supports multiple data providers.
    Thanks.

  • I cant print from EXCEL

    I have just installed my new HP Office Jet Pro 8600 and I am unable to print from EXCEL...Can anyone advise please?

    Do you receive any error messages?
    Yes, the error message I receive is "current printer is unavailable. Select another printer". This error message is shown when I try to print a excel or a PDF file. However, I have no issues printing from Word, or the web. Also, I have a second computer signed on from a wireless network, and it can print everything without an issue.
    What options do you get when you try to print from Excel?
    It gives me the option to use "Microsoft XPS Document Writer" or "Quickbooks PDF converter". However, neither of these options allow me to print. 
    Does it work from other Office programs?
    Yes, Microsoft Word.
    How is the printer connected to the computer?
    The printer was originally a wireless connection when the problem occurred. I then switched to a USB connection, with the same results. I then tried an Ethernet wired connection, but no change. Currently, we are on a USB wired connection.
    What version of Excel is being used?
    "Microsoft Office Excel 2007" I belief it is the home office edition.
    What operating system does the computer use?
    The computer having an issue runs Windows 7. My second computer runs XP, and has no issues.
    How was the printer driver installed?  Was it from a CD or a download?  Was it the full featured driver or basic print driver?
    The printer was installed by a CD. It is unclear to me whether or not it is basic or full, I just popped in the disc the printer came with. It installed version 24.2.0
    We recently purchased this printer in order to replace our old printer for office use. The old printer has incredibly slow, and sometimes did not print things. We first set up the new computer (HP Officejet Pro 8600 N911a), and added it to our wireless network. We then added it to our main computer, and the printer would not print from excel. However, we found we were able to print things without an issue from our second computer once it was added.
    We have tried rebooting, reinstalling, using every form of connection, without progress.

  • Setting properties of printing in Excel

    Hello,
    I am working with Excel through ActiveX and I am trying to set the properties of printing an Excel file to PDF file. I managed to print the document but I cannot change the default properties. I write data in many columns and when I print the document, all the columns are not printed. Specifically I want to scale the document to print. This is how I am trying:
    SetPrintAttribute(ATTR_EJECT_AFTER, 0);
    SetPrintAttribute (ATTR_PRINT_AREA_WIDTH, VAL_INTEGRAL_SCALE);
    SetPrintAttribute(ATTR_EJECT_AFTER, 1);
    error_print_excel = Excel_Worksheet_PrintOut (ExcelWorksheetHandle, NULL, CA_DEFAULT_VAL,
    CA_DEFAULT_VAL, CA_DEFAULT_VAL,
    CA_DEFAULT_VAL, CA_DEFAULT_VAL,
    CA_DEFAULT_VAL, CA_DEFAULT_VAL);
    Can anyone help me? Thanks in advance.

    Hi,
    The NetworkConnectionIndex determines which nic is which. So a network card with the NetworkConnectionIndex of 0 is the first nic on the box, 1 is the second nic etc... If you have multiple nics you will need to evaluate through all of them like so:
    $civms = (get-civapp dean* | get-civm)
    foreach ($civm in $civms) {
        $Net = $civm.ExtensionData.Section | Where {$_.GetType() -like "*networkConnectionSection"}
        $nics = $Net.NetworkConnection
        foreach ($nic in $nics) {
      if ($nic.NetworkConnectionIndex -eq 0) {
      $nic.Network = "Network Name 1"
      $nic.NeedsCustomization = $true
      $nic.IsConnected = $true
      $nic.IpAddressAllocationMode = "DHCP"
      if ($nic.NetworkConnectionIndex -eq 1) {
      $nic.Network = "Network Name 2"
      $nic.NeedsCustomization = $true
      $nic.IsConnected = $true
      $nic.IpAddressAllocationMode = "DHCP"
      if ($nic.NetworkConnectionIndex -eq 2) {
      $nic.Network = "Network Name 3"
      $nic.NeedsCustomization = $true
      $nic.IsConnected = $true
      $nic.IpAddressAllocationMode = "DHCP"
      if ($nic.NetworkConnectionIndex -eq 3) {
      $nic.Network = "Network Name 4"
      $nic.NeedsCustomization = $true
      $nic.IsConnected = $true
      $nic.IpAddressAllocationMode = "DHCP"
      $Net.UpdateServerData()
    Cheers,
    CSIEnvironments aka Dean

Maybe you are looking for