Integer codes for Excel FitToPagesWide ActiveX Needed

Hello,
I am currently using LV6.0.2 and have been doing some Excel controlling in my program. I don't have the tookit so I am been doing most the Excel stuff using direct ActiveX commands.
I have gotten everything working but I am having trouble getting the FitToPagesWide to work before printing. I am not sure if there is an interger code, but if I use a I32 witha value of 1 it does not work.
This is also with Excel 97.
Jeff D.
OS: Win 7 Ultimate
LabVIEW Version: 2011,2010,2009 installed
Certified LabVIEW Architect

I have Excel 2003, but 1 is the correct setting. Try to also set the Zoom to False. Here is a snippet from the help:
If the Zoom property is True, the FitToPagesWide property is ignored.
Example
This example causes Microsoft Excel to print Sheet1 exactly one page wide and tall.
With Worksheets("Sheet1").PageSetup
.Zoom = False
.FitToPagesTall = 1
.FitToPagesWide = 1
End With
Michael Munroe
www.abcdef.biz
Michael Munroe, ABCDEF
Certified LabVIEW Developer, MCP
Find and fix bad VI Properties with Property Inspector

Similar Messages

  • Help,just  entered registration code for quicktime pro,help needed

    Help,just  entered registration code for quicktime pro,help needed,cant seem to see the quicktime pro screen i saw on internet with all the edit and extra things at the top,i dont understand this,any help,Dave

    I hope this helps http://support.apple.com/kb/ht2240 good tips on your prob here..good luck

  • Code for excel sheets

    Hi,
    This is Employee Survey Application.
    Environment:Java,Servlets,HTML,Windows2000,Oracle.
    Our problem is ,we could able generate Reports from database to EXCEL sheet format.
    We have prepared database to HTML reports.
    Our client requirement is to generate Excel format reports.
    I want java code for genrating Excel reports from database(oracle) and How to run this xsl reports.

    Hi,
    you can use the HSSF component of the jakarta POI API (http://jakarta.apache.org/poi/index.html)
    Hi,
    This is Employee Survey Application.
    Environment:Java,Servlets,HTML,Windows2000,Oracle.
    Our problem is ,we could able generate Reports from
    database to EXCEL sheet format.
    We have prepared database to HTML reports.
    Our client requirement is to generate Excel format
    reports.
    I want java code for genrating Excel reports from
    database(oracle) and How to run this xsl reports.

  • May be someone has example code for using ICQ ActiveX

    I can't use the ActiveX of ICQ program may be someone can send me examples for using this ActiveX.
    Thank you.

    So this is how you build a shift register in labview.  I was learning that this was the direction I
    needed to go but didn’t have a clue how to go about it.  I have it wired up and it works great.  Thanks a bunch.  But as you can imagine I have more questions
    now. 
    I don’t want to lose the ~ character of my string.  This will help reduce confusion later on in
    the program.  Is there a way to keep the
    ~ as part of the strings in the array?
    Any suggestions on logic for testing string length?  I am guessing I need to loop through the
    array and check the cells with some form of bit count.  The
    problem is I am seeing that the array refreshes as quickly as the buffer read.  I am concerned there won’t be enough time to
    test all cells.  It isn’t super critical
    but I would like to collect as much of the data as possible.  Right now I have only one transmitter but
    plan to have multiples and need the flexibility to handle larger samples.  At first glance it appears at least 40% of
    the packets will be NG.
    Finally, I want to display the strings that pass the test in
    a single window (cell) without too much blinking.  I’m hoping to just see the numbers change.
    Thanks again, and happy new year to you too.  Cheers!

  • VBA Code for Excel Add-in Menu Items

    Howdy.
    Every month my team needs to execute the same process on a couple hundred documents. It's time consuming and inefficient to say the least, so I'm looking for a means by which to call a couple of the menu items on the Excel BPC Add-Ins menu via VBA. Specifically, Park'n'Go; Expand All; and Send and Refresh Schedules.
    Basically what happens is this:
    Open File
    Set Park'n'Go to Live
    Expand All
    Refresh and Send Schedules
    Set Park'n'Go to Offline
    Save
    Exit
    Loop
    I know how to loop through the files and directories, I just don't know the commands for the functions from the menu via code. The macro recorder can't help me, and I've even tried to mimic a user's actions by using mouse coordinates and clicks, but that doesn't work b/c it doesn't allow for the necessary load time from BPC.
    Any help would be extremely appreciated.

    Hey Jeff,
    here are some vba commands that may help you.
    Open a certain file: (you can assign "Path" to a button or range)
    Dim Path As String
    Path = Application.GetOpenFilename("All Files (.),.")
    Opening the Park 'n Go dialog box:
    Application.Run ("MNU_ETOOLS_PARKNGO")
    Expand All:
    Application.Run ("MNU_ETOOLS_EXPAND")
    Sending data and refreshing the workbook:
    Application.Run ("MNU_eSUBMIT_REFSCHEDULE_BOOK_REFRESH")
    Saving a file OFFLINE:
    Dim FName As String
    FName = InputBox(prompt:="Please enter filename")
    If FName = "" Then
    Application.DisplayAlerts = False
    ActiveWorkbook.Close
    Else
    ActiveWorkbook.SaveAs Filename:="c:\" & FName
    ActiveWorkbook.Close
    End If
    Application.DisplayAlerts = True
    Hope, that will help you
    Karsten

  • Restricted code for nokia 6280 is needed

    i am pleading to every body in the house, i want to unlock my nokia 6280.
    3 network.
    the was brought from london to me in nigeria, has all my effort to insert sim into the phone but the phone is requesting for restricted code..
    Thank you for the assistance.
    EDIT:removed email address & imeiMessage Edited by jams on 24-Oct-2006
    09:06 AM
    Message Edited by jams on 24-Oct-2006
    09:08 AM

    You need to contact the provider as they are the only ones that can unlock phones. Try looking at the unlocking topic for all related info.
    Is that an N95 in your pocket or are you just pleased to see me?!?
    Life's too important to take seriously.
    Nokias I've owned 3210, 3310, 6100, 7650, 6600, 6680, 6630, N80, N95
    I'm a 26 year old boy BTW

  • Need registrati​on code for Deluxe Freecell; this software was previously registered but since hard reset, I now need to reregister

    null
    Post relates to: Tungsten E2

    Hi.. Welcome to the Palm forums.  If you need a registration code for this software you need to talk to the manufacturer, Bapsoft @ http://www.bapsoft.com/.  I assume you purchased it thru the Palm store but you have to realize they are simply the store front that has rights to sell the software for the manufacturer.  The manufacturer takes care of all support.
    Post relates to: Centro (Sprint)

  • I am getting ready to wipe a PC clean but wanted to know how to get the activation code for the Version of Adobe reader that is currently installed on the PC?

    I do not have the activation code for this PC and need to know how to get the software loaded back on it after a clean install of the OS and other programs.

    If you use any additional subscription services to Adobe Reader, they are activated with your Adobe ID & password.

  • Code for selection screen

    hi all,
    in selectin screen i have to populate two fields VIQMEL-KDAUF(sales order) & VIQMEL-QMNUM( shop visit notification),
    here i have to give any of the inputs.like, if i give the SALES ORDER  as input, SVN should be retrived& if SVN is given as input SO should be retrived.
    depending on the given input the second input also should be retrived and passed to others as input.
    can any one send me the code for this..i need it immediately.

    Hi,
    Tables: viqmel.
    Data: begin of it_itab occurs 0,
               ls_qmnum like viqmel-qmnum,
               ls_kdauf like viqmel-kdauf,
            end of it_itab.
    select-options: s_qmnum for viqmel-qmnum,
                           s_kdauf for viqmel-kdauf.
    select QMNUM KDAUF
               from VIQMEL
               into table it_itab
               where qmnum in s_qmnum
               OR kdauf in s_kdauf.
    loop at itab.
    write: /it_itab-ls_kdauf,  it_itab-ls_qmnum.
    endloop.
    Reward pts if helpfull

  • Function code for notification in a custom scenario

    Hi,
    Does anyone know the activity code or function code for a notification that needs to be sent to the organiser of a training event if the maximum capacity of the event is exceeded, i.e. the attendee goes on the waiting list.
    There seems to be no standard activity type which gets triggered the moment the max. capacity of the training event is exceeded.(unlike BOKP)
    Does anyone know the workaround for this ?
    As far as I know you cannot create your own activity based on your custom scenario.
    Hence how to handle this ?

    You can use CRM_ORDER_MAINTAIN and populate the parameter IT_SERVICE_OS
    or use BAPI_OPPORTUNITY_CHANGEMULTI and populate the parameter SERVICE_OS.
    BR,
    Florin

  • What is the Ok-code for Exicute button?

    what is the Ok-code for Exicute button?

    Hi,
    There are 2 ways to find an ok-code.
    1. Click on the button you need, keep the left button of the mouse pushed, and push 'F1' on your keyboard. SAP will tell you the ok-code for the button you need.
    OR
    2. Use transaction SHDB and simulate your transaction.
    Please reward if it helps.
    Philippe.

  • VK code for Enter

    when i try the code
    Robot r = new Robot();
    r.keyPress(20);
    r.keyRelease(20);
    it works for all the VK values i found except for 20 for return, i jus get Invalid key code Eception. can any one tell me the integer code for enter?
    thanks

    i tried that but it doesn't seem to work. ...Here is a little example I made.
    Does it work as you expect?import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    /** Example of using the Robot to type in a text field,
    use the enter key, and activate a button via the space bar. */
    class ActivateButtonUsingRobot {
       static Robot robot;
       static void activateKey(int keycode) {
          robot.keyPress( keycode );
          robot.keyRelease( keycode );
          robot.delay( 150 );
       public static void main(String[] args)
          throws AWTException {
          // if headless, exit early
          robot = new Robot();
          final JFrame f = new JFrame();
          f.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
          JTextArea ta = new JTextArea("1st line!",10,20);
          f.getContentPane().add(ta, BorderLayout.CENTER);
          JButton button = new JButton("Press Me!");
          button.addActionListener( new ActionListener() {
             public void actionPerformed( ActionEvent ae ) {
                JOptionPane.showMessageDialog(
                   f, "Button Activated!" );
          f.getContentPane().add(button, BorderLayout.SOUTH);
          f.pack();
          // put frame in center of screen
          f.setLocationRelativeTo(null);
          f.setVisible(true);
          Dimension screensize =
             Toolkit.getDefaultToolkit().getScreenSize();
          // move mouse to center of screen, and ..
          robot.mouseMove(
             screensize.width/2, screensize.height/2 );
          // ..activate the frame
          robot.mousePress( InputEvent.BUTTON1_MASK );
          robot.mouseRelease( InputEvent.BUTTON1_MASK );
          robot.delay( 400 );
          // try using enter key..
          activateKey( KeyEvent.VK_ENTER );
          activateKey( KeyEvent.VK_ENTER );
          // this text should have a blank line above it..
          activateKey( KeyEvent.VK_H );
          activateKey( KeyEvent.VK_I );
          // move to the button
          robot.keyPress( KeyEvent.VK_CONTROL );
          robot.keyPress( KeyEvent.VK_TAB );
          robot.keyRelease( KeyEvent.VK_TAB );
          robot.keyRelease( KeyEvent.VK_CONTROL );
          robot.delay( 500 );
          // try activating the button..
          activateKey( KeyEvent.VK_SPACE );
    }

  • Code for setting computer to automattically press a key

    Hi,
    I'm trying to make code for something. I need script made so that I can have my computer press keys (automatically) in the order I tell it to.
    Example: Computer presses the key A, then B, then C. After that's done, it starts over again. I need it to be timed also. Example for that , is Every 45 seconds it presses A, B, C in order. Any tips on starting this ?
    Thanks

    A script? This forum is for Java programming. Do you mean you want to write some Java code? If so, use java.awt.Robot and java.util.Timer.

  • How do I locate my claim code for my 4630 HP Officejet?

    How do I locate my claim code for my 4630 HP Officejet?

    Hi @goBgo and  @Leneia,
    Thank you both for joining the HP Support community.  I understand that you require the claim code for your Officejet 4630.
    To get the printer claim code for your printer you need to enable web services.  The instructions on how to do this can be found in your user guide on page 60, in the section titled "To print using HP ePrint".  Now that you have your printer claim code, please follow the steps in the document about customizing the printer's email address.   
    HP Officejet 4630 e-All-in-One Series User Guide
    http://h10032.www1.hp.com/ctg/Manual/c03909822.pdf
    Setting Up a Custom Email Address for ePrint
    http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&lc=en&docname=c02940150
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • Urgently Need Code for Copy & Paste from Html Table in JSP to Excel file

    I am creating a html table in JSP file .
    I need code for 'Cut,Copy,Paste' functions ie. if someone wants to copy data from my table to excel file or from excel file to html table he shud be able to do that.
    Can someone give me code for 'Cut,Copy and Paste' i.e. some javascript functions which can do cut, copy and paste which i can put in my jsp file
    Thanks
    Message was edited by:
    javatechguru2007

    package com.chinmayananda
    public class Tetris{
    // complete here
    code]
    public abstract class AbstractTetris {
       public abstract void start();
       public abstract void stop();
    }nearly done

Maybe you are looking for

  • Garmin GPS - Communicator Plugin

    Garmin requires the plug-in to register (and download software upgrades into) the GPS. Through Garmin's site, I downloaded the plug-in and got an "Install Completed Successfully" msg. In Safari, I click on Help>Installed Plug-ins, and it shows that "

  • Setting the utl_file_dir parameter in 10g

    I want to set the 'utl_file_dir' parameter. From the internet I found that I can do it from OEM (the web-based one) by choose 'All initialisation Parameters...SPFile Tab...' (Refer to http://otn.oracle.com/obe/obe10gdb/bidw/blast/blast.htm#t0c). Howe

  • SSD suddenly stopped working

    Hello everybody. I do have a very strange problem with my SSD (Samsung 840 EVO 250GB). A longe time ago, almost a year I replaced my SuperDrive with an OpticalBay. Bought a new SSD. I put the SSD in the original drive place and placed the HDD drive i

  • BC4j/JSP Application not responding after some time - when deployed on 9ias

    Hi, We are using BC4j/jsp application on 9ias. The application is not responding after some time. We have installed 9ias on PIII(384MB RAM). We tried to accesses with 10 users, and server is not responding to BC4J/JSP application. However the server

  • Visits through proxy servers (was: Just plain CREEPY!)

    Has anyone else had this happen to them. I have inserted CODE on all my websites to TRACK anyone visiting my websites pages- Since I joined the Adobe forum ALL the visits that are germane to this forum are 90% through Proxy servers!!!!!! But that's n