Visual FoxPro 9.0 SP2

http://rorymon.com/blog/index.php/app-v-recipe-visual-foxpro-9-0-sp2/
I am no longer posting recipes in plain text on this forum. I will instead post links to my site which contains step by step instructions with images.
PLEASE MARK ANY ANSWERS TO HELP OTHERS Blog:
rorymon.com Twitter: @Rorymon

This is not obvious. VMware should allow some monitoring which will show the bottle neck. Did you check what VFP command causes these delays? File opening, record/file locking etc?

Similar Messages

  • How to show all view tab (Main Report and all Sub Report) in Visual FoxPro 9

    I use ActiveX from Crystal Report Developer XI for viewer in Visual FoxPro 9 and I already know how to show Main Report by using command:
    oRptRun=createobject("CrystalRuntime.Application")
    oRptView=thisform.oleRptViewer
    oRptOpen=oRptRun.OpenReport('MyReport.rpt')
    oRptView.ReportSource=oRptOpen
    oRptView.ViewReport
    Inside the MyReport.rpt there is two subreport name :
    1. MySubReport1
    2. MySubReport2
    My Question is :
    How to show all view tab (Main Report and all Sub Report) at the 1st time we call ViewReport?
    I try to using command :
    oRptRun=createobject("CrystalRuntime.Application")
    oRptView=thisform.oleRptViewer
    oRptOpen=oRptRun.OpenReport('MyReport.rpt')
    oRptSub=oRptOpen.OpenSubreport("MySubReport1")
    oRptSub=oRptOpen.OpenSubreport("MySubReport2")
    oRptView.ReportSource=oRptOpen
    oRptView.ViewReport
    but only show Main Report (view tab name : Preview)?
    Did I miss any command before I call oRptView.ViewReport?

    Your right, there is only one tab to view the report.
    To open the subreports you will need to click on them in the main report. I don't know of a way to open them programmatically like you are doing here
    http://diamond.businessobjects.com/robhorne</a>

  • Windows 8.1 - Office 2013 - Visual FoxPro - excel data connection problems

    Hi i have an excel document with existing data links to a foxpro database. these links worked on windows 8 with office 2013 but since getting windows 8.1 the links no longer work.
    After much searching i have found i need to installed VFPOLEDBSetup.msi
    This does not fix the issue. The ODBC Data sources located Control Panel\All Control Panel Items\Administrative Tools still have no reference to FoxPro and within excel if i select from other sources and the other/advanced i can see the Microsoft OLE DB
    provider for visual fox pro but it crashes excel.
    in Windows 8 ODBC Data sources located Control Panel\All Control Panel Items\Administrative Tools i have listed two items Visual FoxPro Database and Visual FoxPro Tables but both these are missing in Windows 8.1.
    What do i need to do to correct other than not to use Windows 8.1
    Many Thanks

    Hello,
    Thank you for your question.
    I am trying to involve someone familiar with this topic to further look at this issue.
    Thanks,
    George Zhao
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click "[email protected]"

  • Integrate Crystal Reports version 11.5 and Visual FoxPro

    Post Author: landc50
    CA Forum: General
    I have developed several softwares in Visual FoxPro while using Crystal Reports Version 7 as the major reporting tool.   It was easy to invoike Crystal reports from my applications, simply by adding the Crystal OCX onto the VFP form. 
    Now --- I have added the ActiveXReportViewer from version 11.5 onto my VFP form.    Looks ok but it I am not sure how to invoke the reports in Maximized mode.   Seems like it will only show the report the same size as the object I placed on my VFP form.
    I need to know how to do this yesterday.   I must implement a new system and I do not want to revert back to Crystal reports version 7.   Any help would be appreciated. 

    Post Author: The Donger
    CA Forum: General
    Hi,
    I would recommend you have an empty form and drop the viewer on that form.  Set the form's state to Maximize. 
    Good luck,
    Brian

  • Visual Foxpro (VFP): Background color for ResizeCanvas - how?

    I'm using Visual Foxpro to automate certain tasks with photoshop.
    I can open an image file, save it as something else, extend the canvas, but I cannot set the color for the canvas that gets added.
    Somewhere in the application model for Photoshop (CS) must be an object property to set the background color to some kind of value representing for example a certain grey.
    Has anybody worked with this
    General approach in my VFP-Code:
    PUBLIC oPhotoshop
    oPhotoshop = CREATEOBJECT( "Photoshop.Application" )
    oJPEGSaveOptions = CREATEOBJECT("Photoshop.JPEGSaveOptions")
    oJPEGSaveOptions.quality = 8
    lnNewH = 800
    docRef.resizeCanvas(lnNewH ,lnNewH ,5) && 5 = extend to all sides with active background color
    docRef.SAVEAS(lcfilename2, oJPEGSaveOptions, .F.)

    This sounds like more of a scripting question than a SDK question, so in JavaScript I would do something like this:
    // retrieve the current background color
    var oldColor = new SolidColor();
    oldColor = app.backgroundColor;
    // create a new SolidColor object and assign a color value
    var newColor = new SolidColor();
    newColor.rgb.red = 100; //or whatever red value you want
    newColor.rgb.green = 150; //ditto green
    newColor.rgb.blue = 200; //ditto blue
    // set the Application backgroundColor property to the new color
    app.backgroundColor = newColor;
    // do what you gotta do!
    // set the Application's backgroundColor back to it's old value
    app.backgroundColor = oldColor;
    I'm not familiar with using Visual FoxPro as an IDE... If you're using VBA scripting, the syntax will be a little different - but the procedure should be the same. I hope this helps.

  • Java.sql.SQLException: [Microsoft][ODBC Visual FoxPro Driver]Syntax error

    Hi all,
    I am able to INSERT and SELECT records from FoxPRo database successfully.
    The driver is Sun JDBC-ODBC bridge
    The DELETE statement throws no exception.
    I've tried to execute PACK after the DELETE call and got following exception:
    java.sql.SQLException: [Microsoft][ODBC Visual FoxPro Driver]File must be opened exclusively.So I tried USE MYTABLE EXCLUSIVE in a Statement before calling PACK and got the exception:
    java.sql.SQLException: [Microsoft][ODBC Visual FoxPro Driver]Syntax error or access violationI've also tried inserting the USE MYTABLE EXCLUSIVE before calling DELETE but got the same exception above.
    The ODBC DSN for MYTABLE is setup as:
    - Free Tables (not database)
    - Null (checked)
    - Deleted (checked)
    - Fetch data in background (checked)
    I am not able to issue any of the following commands to FoxPro using java
    OPEN - To open a table
    CLOSE - To close a table
    USE - To open a table for uer either in exclusive mode or shared mode
    The exception being generated is :
    java.sql.SQLException: [Microsoft][ODBC Visual FoxPro Driver]Syntax error or access violationThe help file of the Microsoft Visual Foxpro Driver states that the driver has support for the above commands.I a not able to get the way to issue the above commands to the driver using java.
    In setting up the ODBC DSN I saw no "read only" setting.
    In the Visual Foxpro table, I saw no READ ONLY settings.And also, there are no delete permission grants and there is no user database sesssion concept.
    I've tried all of the above with DSN mapped to a database(NOT free tables) and setting AUTO-COMMIT OFF and AUTO-COMMIT ON.But in vain. The same exceptions as those stated above persisted.
    Environment:
    Microsoft Windows XP Professional
    JDK version "1.4.2_09"
    Microsoft Visual Foxpro 06.00.8167
    Microsoft Visual Foxpro Driver 6.01.8629.01
    Don't know what else to try.
    Can anybody please help me.
    Thanks in advance
    Archana

    java.sql.SQLException: [Microsoft][ODBC Visual FoxPro Driver]File must be opened exclusively.
    In the Visual Foxpro table, I saw no READ ONLY settings.And also, there are
    no delete permission grants and there is no user database sesssion concept.
    The ODBC DSN for MYTABLE is setup as:
    - Free Tables (not database)
    - Null (checked)
    - Deleted (checked)If you're using Visual Foxpro database(.DBC), you should see "Exclusive" option too. You can try check it, but I don't know whether your issue will disappear.

  • Migration of Data from Visual Foxpro (.DBF) to Table in Oracle 8i (Win NT)

    Hi Everyone,
    I have data in Visual Foxpro (.dbf) which I would like to take into a table of Oracle 8i. I would like to know the easy but secure way of porting from dbf to oracle. I am able to convert to access, if needed.
    Please help ! Thanks in anticipation
    Beethoven

    hello,
    check http://otn.oracle.com/tech/migration/content.html
    for further information on migrating different types of data to oracle. the easiest way would be to import your foxpro data into microsoft access and then migrate this access-database using the GUI tool you also find at the location mentioned above.
    regards,
    the oracle reports eam

  • Alternative for Visual FoxPro on OS X?

    Does anyone knows any alternative for Visual FoxPro on OS X which can run simple commands, because I do not have any server and I do not need to work on whole programs?

    Check out Lianja http://www.lianja.com
    It supports Visual Foxpro syntax and runs on OSX as well as Windows and Linux.
    It also has a interactive console allowing you to simply enter Visual Foxpro commands without requiring you to write a program.

  • Crytsal Reports 11 cannot connect to Visual Foxpro Database table

    I hope someone can help me here. I have read through the other posts here, but can't seem to fiind the answer I need.
    We use Crystal Reports to pull information from our Sage databases to create and distribute reports. Currently this is working fine on the original server. However, we decided to move the installation of Crystal Reports from one server to another.
    In setting up the new server, I keep getting the message "The database table (table name) cannot be found. Proceed to remove this table from the report?" It displays this message for all the different tables in which data is trying to be accessed. Once I click No to all of these notifications, the correct info is poplulated in the report just fine. I need to get this corrected. It does not do this on the original installation.
    Also if I open Database Expert and single click too expand the "Current Connections" folder, I get a message that pops up saying "Database Connector Error: 'HY010:[Microsoft][ODBC Visual Foxpro Driver] Function sequence error'". When I click OK to that, I get another similar error that reads "Database Connector Error: 'IM001:[Microsoft][ODBC Driver Manager] Driver does not support this function'"
    Please let me know of any ideas that you may have as to what may be causing this issue. I have tried reinstalling the ODBC drivers, Runtime files, and Crystal. I appreciate any help.

    I tried what you mentioned but it did not work. I believe it has to do with a "SQLNumResultCols" in SQL. The reason I say this is because I did a trace on both the server that is working and the server that is not and this is the first key that displayed an error in the SQL.LOG file. Here is this section of the SQL.LOG file for the server that isnt working...
    dde             2e94-28b0     EXIT  SQLNumResultCols  with return code -1 (SQL_ERROR)
              HSTMT               03442998
              SWORD *             0x0012F3F4
              DIAG [HY010] [Microsoft][ODBC Visual FoxPro Driver]Function sequence error (0)
    And here is this section of the SQL.LOG file for the server that is working...
    dde             eb8-c94     EXIT  SQLNumResultCols  with return code 0 (SQL_SUCCESS)
              HSTMT               03542508
              SWORD *             0x0012F3F4 (5)
    I believe if I can figure out what is causing this, I will be able to resolve this issue, but I am not a programmer and I am having a very hard time with this. Any help is appreciated.

  • Crystal XI Reports and Visual Foxpro Tables

    Post Author: Pamela Vincent
    CA Forum: Data Connectivity and SQL
    I have installed XI and tried to add an ODBC connection for a database package written in Visual Foxpro 9.0
    In online help there appears to be a Foxpro option in the connection info diagrams, but I don't get all of the choices when working through the process myself.
    I had no problems connecting and using Crystal 8.5 previously so I'm at a loss as to why I can't get it to work.
    Any suggestions would be appreciated.

    Not just the runtime - where would you get it without breaking licensing? You have to have a valid copy of CR 2008 and install it. No worries about unistalling CR 10.5 - .NET 2008 will automatically use the latest files.
    Re. Oracle support. That is correct. The crdb_oracle.dll does not ship with any versions of CR that bundle with .NET. You could go ODBC or OLE DB though.
    Not sure what you mean;
    Can the CRRuntime_12.x be bundle to VS 2008 just like the Basic version does?
    But as I mentioned above, you must obtain a copy of CR 2008. A 30 day eval is available from here;
    http://www.sap.com/solutions/sapbusinessobjects/sme/freetrials/index.epx
    To obtain a non eval copy, call sales; 866-681-3435
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • I want to connect Visual foxpro database through forms6i.

    Hi ,
    I want to connect Visual foxpro database through forms6i.
    actually i want to access Visual foxpro database in forms6i and retrive and update data from forms6i.
    please help me urgently how can i do this in forms6i.
    Thanks,
    Md.Muniruzzaman Khan
    Email : [email protected]

    do the following steps for hetrogenous service
    Step 1
    Create ODBC named Access1.
    Step 2
    Go to urs inithsodbc.ora file which reside at
    ORACLE_HOME\hs\admin\inithsodbc.ora
    and overrite by
    # This is a sample agent init file that contains the HS parameters that are
    # needed for an ODBC Agent.
    # HS init parameters
    HS_FDS_CONNECT_INFO = Access1
    HS_FDS_TRACE_LEVEL = off
    # Environment variables required for the non-Oracle system
    #set <envvar>=<value>
    Step 3
    Add the following entry to the tnsnames.ora file:
    ACCESS1.WORLD =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
    (CONNECT_DATA=(SID=ACCESS1))
    (HS=OK)
    Step 4
    Add the following entry into the listener.ora file:
    (SID_DESC=
    (SID_NAME=ACCESS1)
    (ORACLE_HOME=D:\Oracle)
    ---Define urs oracle home path in mine case it is at D:\Oracle--
    (PROGRAM=hsodbc)
    Step 5
    Reload the listener from contol panel services yours listener service
    Step 6
    Create a database link using:
    CREATE DATABASE LINK access1.world CONNECT TO "MyUser" IDENTIFIED BY "MyPassword" USING 'ACCESS1.WORLD';
    Step 7
    Connect to scott/tiger
    Query the table using:
    SELECT *
    FROM [email protected];
    Step 8
    Same you can connect to urs forms and write above sql in cursor
    Acknowledge me.
    Khurram Siddiqui

  • How to move data from Sql Server 2008 R2 to Visual Foxpro 6.0 dbf file format

    I have some data that resides in SQL that needs to be automated via a SSIS package to create the output to a Visual Foxpro 6.0 format for use by another application that cannot access the SQL server.
    How can this be done with SSIS

    use the OLEDB provider from Microsoft http://www.microsoft.com/en-us/download/details.aspx?id=14839
    Arthur My Blog

  • How to create linked server in sql 2005 to access free table visual foxpro 9 step by step

    Hi All, I want to connect to dbf file visual foxpro by using linked server in sql 2005, but i can't do, i hope getting best anwser from every body in forum.
    Thanks all.

    Hi doanpq,
    Please download and install OLE DB Provider for Visual FoxPro 9.0, which exposes OLE DB interfaces that you can use to access Visual FoxPro databases and tables from other programming languages and applications. Please see:
    http://www.microsoft.com/en-us/download/details.aspx?id=14839
    Then, please follow up the following article to create a linked server:
    Creating Linked Servers:
    http://technet.microsoft.com/en-us/library/ff772782(v=sql.105).aspx
    For more information, you can also take a look at the following article, especially Dave K's comment:
    http://blog.dbase.integralwebsolutions.co.za/2008/10/accessing-your-dbf-tables-via-linked.html
    Elvis Long
    TechNet Community Support

  • Philadelphia VFP User Group--Tuesday, April 14--"Document Management within Visual FoxPro"

    The Philadelphia VFP User Group meets Tuesday, April 14 at 7:00 PM in room 104, DeVry University, 1140 Virginia Drive, Fort Washington, PA. As usual, feel free to bring some dinner and come as early as 6:30 PM.
    This month, member Jim Connolly will speak on “Document Management within Visual FoxPro.”
    Abstract: I created programs that will create an electronic filing system. The programs read the bar codes from the invoices and files them in electronic storage. This allows the end user to view the documents with a single click in the app. I will show the
    class how to setup the bar code reader and to accept individual scans for easy access. There are some recommended programs that will assist in the process. I will present them along with the Fox Pro program.
    We need speakers for upcoming meetings. Please let Jim ([email protected]) know if you have something to share with the group.
    http://vfpphilly.blogspot.com/

    The Philadelphia VFP User Group meets Tuesday, April 14 at 7:00 PM in room 104, DeVry University, 1140 Virginia Drive, Fort Washington, PA. As usual, feel free to bring some dinner and come as early as 6:30 PM.
    This month, member Jim Connolly will speak on “Document Management within Visual FoxPro.”
    Abstract: I created programs that will create an electronic filing system. The programs read the bar codes from the invoices and files them in electronic storage. This allows the end user to view the documents with a single click in the app. I will show the
    class how to setup the bar code reader and to accept individual scans for easy access. There are some recommended programs that will assist in the process. I will present them along with the Fox Pro program.
    We need speakers for upcoming meetings. Please let Jim ([email protected]) know if you have something to share with the group.
    http://vfpphilly.blogspot.com/

  • .How to Change Path to dbf files Using Visual FoxPro ODBC Driver

    Using vb.Net 2008, full Crystal 2008.
    I have a Crystal report that uses a Visual FoxPro File DSN pointing at a folder with dbase (.dbf) files. 
    I need to be able to change the folder location at runtime. In the RDC, one key part of this has been specifying a connection string, such as:
    "Driver={Microsoft Visual FoxPro Driver};SourceType=DBF;SourceDB=" & gs_FileDSN_Path & ";Exclusive=No;Collate=Machine;Null=Yes;BackgroundFetch=No;"""""""
    However, I can't find any .NET documentation confirming this syntax and, even more importantly, where does it go?
    I tried 2 variations as:
                    reportTableLogonInfo.ConnectionInfo.Attributes.Collection.Add(New NameValuePair2("Connection String", ls_ConnectionString))
                    reportTableLogonInfo.ConnectionInfo.Attributes.Collection.Add(New NameValuePair2("ConnectionString", ls_ConnectionString))
    Followed later by   TableN.ApplyLogOnInfo(reportTableLogonInfo)before calling
    But I don't know if the correct attribute name is "Connection String", "ConnectionString", or something else.
    I also tried to set the connection string to the QE_ServerDescriptions property, as in:
    reportTableLogonInfo.ConnectionInfo.Attributes.Collection.Add(New NameValuePair2("QE_ServerDescription", ls_ConnectionString))
    None of these variations nr many others seem to work.
    BOTTOM LINE:
    Could someone provide sample code for overriding the dbase files folder location specified by a Visual FoxPro FileDSN?
    Thanks!

    OK, I came to the conclusion that the tables or the report somehow hold on to the File DSN for dear life and I can't change that fact.
    So I'm going to change my approach and instead of changing the connection properties of the tables, I'll modify the properties of the File DSN on the fly.  Ugly, but an OK solution for my use scenario.
    It would still be great to get a code sample for the original question but, it's no longer a burning issue for me.
    It would be nice if the support team created a document describing in detail how to achieve database location changes using .NET for different scenarios. It's a common need and the RDC object model had such a document.

Maybe you are looking for