To export table in hosted environment

hi,
i am workin in hosted envr, what i need to do is
1) i have a simlple tabe and i need to select data from it and print it in a
a) pdf file.
b)excel file.
through an PL/SQL procedure.
i cannot access UTL file so fileopen() doesnt work as i am using Hosted envr
how can i save it in D:/some_dir locally.

Hi
Welcome to forum!!!!
If you just want the data then may be this:
SQL> select *from DANISH;
OPT_CODE   OPTION1                                            MENU  TEXT
A001       Create Credit Memo      (CREDIT PROCESSING)        ADM   ADM|AZH|RAZ|MUN|ZAF|TMP|AD1|MRM|MKA|GQK|KHA|SHA|SHK|AAK|ALI|SHH|MTB|MTL|SAS|SAH|
SQL> spool c:\test.xls
Started spooling to c:\test.xls
SQL> select *from DANISH;
OPT_CODE   OPTION1                                            MENU  TEXT
A001       Create Credit Memo      (CREDIT PROCESSING)        ADM   ADM|AZH|RAZ|MUN|ZAF|TMP|AD1|MRM|MKA|GQK|KHA|SHA|SHK|AAK|ALI|SHH|MTB|MTL|SAS|SAH|
SQL> spool off;
Stopped spooling to c:\test.xls

Similar Messages

  • Transferring App from one workspace to other in Hosted Environment.

    Hi,
    I have two work space viz. dev_application and prod_application in hosted environment.
    This is the first time i will be transferring an application from development to production ( Note: I am not a software engineer. I am a MIS who works with excel and was trying my hand to convert excel based work to apex which proved to be a big big big hit* ).
    Can anyone guide me to transfer my development application to production environemnt.
    My application has :-
    1. Application
    2. a jquery filed in image direcory
    3. Table , sequences , index , functions.
    Note: My application is in HOSTED ENVIRONMENT
    A step by step help or a link to a good tutorial will be highly appreciated.
    Regards,
    Shijesh

    Create DDL scripts to set up each database environment the way you need to (create tables, indexes, packages, etc.). Use Oracle database utilities like datapump export to export data from one database and import into another. About javascript, you need to specify your requirements precisely in terms of where it is stored. Same with images and css.
    If you are creating a packaged application for installation in numerous databases you can create an installation script that goes with the application. See the User's Guide and the Supporting Objects page in the Builder after you select an application. There are lots of instructions throughout.
    Scott

  • Unicode export:Table-splitting and package splitting

    Hi SAP experts,
    I know there are lot of forums related to this topic, but I have some new questions and hence posting a new thread.
    We are in the process of doing unicode conversion in our landscape(CRM 7.0 system based on NW 7.01) and we are running on AIX 6.1 and DB2 9.5. The database size is around 1.5 TB and hence, we want to go in for optimization for export and import in order to reduce the downtime.As a part of the process, we have tried to do table-splitting and parallel export-import to reduce the downtime.
    However, we are having some doubts whether this table-splitting has actually worked in our scenario,as the export has exeucted for nearly 28 hours.
    The steps followed by us :
    1.) Doing the export preparation using SAPINST
    2.) Doing table splitting preparation, by creating a table input file having entries in the format <tablename>%<No.of splits>.Also, we have used the latest R3ta file and the dbdb6slib.o(belonging to version 7.20 even though our system is on 7.01) using SAPINST.
    3.) Starting with the export using SAPINST.
    some observations and questions:
    1.) After completion of tablesplitting preparation, there were .WHR files that were generated for each of the tables in DATA directory of export location. However, how many .WHR files should be created and on what basis are they created?
    2.) I will take an example of a table PRCD_CLUST(cluster table) in our environment, which we had split. We had 29 *.WHR files that were created for this particular table. The number of splits given for this table was 36 and the table size is around 72 GB.Also, we noticed that the first 28 .WHR files for this table, had lots of records but the last 29th .WHR file, had only 1 record. But we also noticed that, the packages/splits for the 1st 28 splits were created quite fast but the last one,29th one took a long time(serveral hours) to get completed.Also,lots of packages were generated(around 56) of size 1 GB each for this 29th split. Also, there was only one R3load which was running for this 29th split, and was generating packages one by one.
    3.) Also,Our question here is that is there any thumb rule for deciding on the number of splits for a table.Also, during the export, are there any things that need to be specified, while giving the inputs when we use table splitting,in the screen?
    4.) Also, what exactly is the difference between table-splitting and package-splitting? Are they both effective together?
    If you have any questions and or need any clarifications and further inputs, please let me know.
    It would be great, if we could get any insights on this whole procedure, as we know a lot of things are taken care by SAPINST itself in the background, but we just want to be certain that we have done the right thing and this is the way it should work.
    Regards,
    Santosh Bhat

    Hi,
    First of all please ignore my very first response ... i have accidentally posted a response to some other thread...sorry for that 
    Now coming you your questions...
    > 1.) Can package splitting and table-splitting be used together? If yes or no, what exactly is the procedure to be followed. As I observed that, the packages also have entries of the tables that we decided to split. So, does package splitting or table-splitting override the other, and only one of the two can be effective at a time?
    Package splitting and table splitting works together, because both serve a different purpose
    My way of doing is ...
    When i do package split i choose packageLimit 1000 and also split out the tables (which i selected for table split)  into seperate package (one package per table). I do it because that helps me to track those table.
    Once the above is done i follow it up with the R3ta and wheresplitter for those tables.
    Followed by manual migration monitor to do export/import , as mentioned in the previous reply above you need to ensure you sequenced you package properly ... large tables are exported first , use sections in the package list file , etc
    > 2.) If you are well versed with table splitting procedure, could you describe maybe in brief the exact procedure?
    Well i would say run R3ta (it will create multiple select queries) followed by wheresplitter (which will just split each of the select into multiple WHR files)  ...  
    Best would go thought some document on table spliting and let me know if you have specific query. Dont miss the role of hints file.
    > 3.) Also, I have mentioned about the version of R3ta and library file in my original post. Is this likely to be an issue?Also, is there a thumb rule to decide on the no.of splits for a table.
    Rule is use executable of the kernel version supported by your system version. I am not well versed with 7.01 and 7.2 support ... to give you an example i should not use 700 R3ta on 640 system , although it works.
    >1.) After completion of tablesplitting preparation, there were .WHR files that were generated for each of the tables in DATA directory of export location. However, how many .WHR files should be created and on what basis are they created?
    If you ask for 10 split .... you will get 10 splits or in some case 11 also, the reason might be the field it is using to split the table (the where clause). But not 100% sure about it.
    > 2) I will take an example of a table PRCD_CLUST(cluster table) in our environment, which we had split. We had 29 *.WHR files that were created for this particular table. The number of splits given for this table was 36 and the table size is around 72 GB.Also, we noticed that the first 28 .WHR files for this table, had lots of records but the last 29th .WHR file, had only 1 record. But we also noticed that, the packages/splits for the 1st 28 splits were created quite fast but the last one,29th one took a long time(serveral hours) to get completed.Also,lots of packages were generated(around 56) of size 1 GB each for this 29th plit. Also, there was only one R3load which was running for this 29th split, and was generating packages one by one.
    Not sure why you got 29 split when you asked for 36, one reason might be the field (key) used for split didn't have more than 28 unique records. I dont know how is PRCD_CLUST  split , you need to check the hints file for "key". One example can be suppose my table is split using company code, i have 10 company codes so even if i ask for 20 splits i will get only 10 splits (WHR's).
    Yes the 29th file will always have less records, if you open the 29th WHR you will see that it has the "greater than clause". The 1st and the last WHR file has the "less than" and "greater than" clause , kind of a safety which allows you to prepare for the split even before you have downtime has started. This 2 WHR's ensures  that no record gets missed, though you might have prepared your WHR files week before the actual migration.
    > 3) Also,Our question here is that is there any thumb rule for deciding on the number of splits for a table.Also, during the export, are there any things that need to be specified, while giving the inputs when we use table splitting,in the screen?
    Not aware any thumb rule. First iteration you might choose something like 10 for 50 GB , 20 for 100 GB. If any of the tables overshoots the window. They you can give a try by  increase or decrease the number of splits for the table. For me couple of times the total export/import  time have improved by reducing the splits of some tables (i suppose i was oversplitting those tables).
    Regards,
    Neel
    Edited by: Neelabha Banerjee on Nov 30, 2011 11:12 PM

  • Question on Exporting Table Stats to another database

    I have a question exporting Table Stats from one schema in database A to another schema in another database B.
    Currently running Oracle 9.0.2.6 for unix in both prod and dev.
    Currently table stats are gathered using the ANALYZE TABLE command. We currently don't use the DBMS_STATS package to gather table statistics.
    Question:
    If I execute DBMS_STATS.EXPORT_TABLE_STATS in database A can I import them to database B if I'm only using the ANALYZE TABLE to gather table stats? Do I need to execute the DBMS_STATS.GATHER_TABLE_STATS package in database A prior to excuting DBMS_STATS.EXPORT_TABLE_STATS ?
    The overall goal is to take table stats from Production in its current state and import them into a Development environment to be used for testing data / processes.
    Yes we will be upgrading to Oracle 10 / 11g in near future.
    Yes we will be changing our method of gathering table stats by using the DBMS_STATS package.
    Thanks,
    Russ D

    Hi,
    If I execute DBMS_STATS.EXPORT_TABLE_STATS in database A can I import them to database B if I'm only using the ANALYZE TABLE to gather table stats? You need using the DBMS_STAT package for get and export statistics process if you want migrate the stats to other database.
    Do I need to execute the DBMS_STATS.GATHER_TABLE_STATS package in database A prior to excuting DBMS_STATS.EXPORT_TABLE_STATS ?Yes, you need executing first DBMS_STATS.GATHER_TABLE_STATS.
    Good luck.
    Regards.

  • How can we copy table from QA environment to Develoment?

    Hi, how can we copy a table of QA environment to dev, can we do that with T-sql statements. I have access to both QA and dev.

    Hi Rahul,
    You can use
    INSERT statements to copy data from DEV to QA. You may also need to create a Linked server connection if one does not already exist.
    I personally would create a temporary SSIS package to copy data between servers using the
    Import / Export wizard.
    It could also be seen as bad practice by your DBA to have a Linked server connection between DEV and QA. So I vote SSIS for this task.
    Kind Regards,
    Kieran.
    Kieran Patrick Wood http://www.innovativebusinessintelligence.com http://uk.linkedin.com/in/kieranpatrickwood http://kieranwood.wordpress.com/

  • ODBC from Access 2010 - where have my exported tables gone?

    Story so far:
    Environment Windows 8.1 Office 2013 both 64 bit
    Got an Access 2010 DB which is too big (1.8GB), so I want to do an SQL Express back end and an Access front end.
    I install SQL 2012 Express on my local system CCW8.
    I create a DB in SQL Management Studio (called OUS). In Access 2013 I create an ODBC datasource (it does not ask for 32 or 64 bit) called CCW8\OUS
    I can export tables to this daatsource
    I delete the local tables in Access.
    I attach the dbo.TABLENAME SQL tables
    My data is visible.
    But I need to find these tables in SQL Management Studio to do the database diagrams. I can't find them
    My OUS database exists but has no tables.
    After a reboot, the datasource is no longer visible in ODBC datasouces (32 or 64 bit) but the Access DB can still "see" some data
    Can someone point me to a reference?
    Also should I stop using Access as a front end - it's easy for users coming from Excel and Office VBA?
    CarolChi

    Hello,
    It seems that Access data export to ODBC data source is failed.
    Did you try to export Access data into SQL Server database with another methods? For example, using SQL Server Migration Assistant for Access or SQL Server Import and Export Wizard from SQL Server Management Studio?
    In order to use Access as front end for a SQL Server database, you can build a OBDC connection to your SQL Server database and create linked table in Access.
    Reference:http://office.microsoft.com/en-in/access-help/link-to-sql-server-data-HA102809758.aspx
    Regards,
    Fanny Liu
    If you have any feedback on our support, please click
    here.
    Fanny Liu
    TechNet Community Support

  • How to export tables from development server to production server

    HI,
    Any body plz let me know how to export tables from development server to production server. what are the user names and password i need to ask my manager to do that. what are the requirements i need to ask him.
    Plz reply me ASAP.
    Thanks in advance.

    hi buddy
    first of all you should let us know the environment of production and development servers
    database versions
    and you need to have userid which has privilege to export tables of other schema. userid(owner) of the tables you want to export.
    Traditional way
    export tables in development server and then ftp to production and then import
    in the above case you should have similar database structure(tablespace etc) to avoid errors...
    if there are few tables only , you can use dblink instead of export and import...

  • Export table data only

    Hi Gurus,
    I am wondering if anyone can offer some advice in regards to export table data from a source and import it to another system.
    We have a development environment (say, Banner_dev) and a production one (say, Banner_Prod). We routinely perform database refresh from Banner_Prod to Banner_dev, using Oracle Rman cloning. However, the developers are not happy with this approach saying that other things (such as packages, functions, procedures) get overwritten.
    We (DBAs) have been asked to see if we can use export/import approach so that only data within a schema will be exported and imported, leaving other objects untouched in Banner_Dev when we refresh the database from Banner_Prod to Banner_Dev.
    Is this doable with Oracle Data Pump? If it is, how can we accomplish this?
    Thanks!

    You might consider a layered, scripted approach that takes into account the differences between the production and development environments. You might want to take into account things like differences between table DDL, data upgrading, coordinating code and so forth. The ideal is to be able to say "hey everybody, we're going to push this button tonight, be sure your work is saved into this system that will refresh everything."
    Of course, I'm used to doing this with exp/imp because of various app and dba requirements (like, I really don't want to use the same schema name between dev and prod) and the scripts have been refined over time, but there isn't any reason you couldn't have a general post-clone procedure. Describe it in terms that developers see as beneficial to them.

  • Transitioning Primavera from Hosted Environment to a Local Installation

    We are in the process of transitioning our Primavera software from a hosted environment to a locally installed version (R8.3).  I exported my schedule selecting the Primavera .XER format from the hosted installation and imported it to my local copy.  All the WBS elements, activities, activity ID's, durations, start dates and finish dates transferred but all other coding (columns) is not there.  What are we missing?  Or, what is the best way to handle this type of transition so the schedule is the same on the other side?
    Thanks in advance.

    Do you have the option to backup / restore the entire database to your local copy?  Even if it is a different database engine (Oracle vs SQL Server), there is a migration tool to convert it.  That way you will have everything the same that was on the hosted environment.  Or, do you need to somehow merge data from the hosted environment into an existing database that you already have?  If so, you will need to piece things back together.  For example, your layouts and filters will need to be separately exported / imported.  Document 1085144.1 in the knowledgebase is a good reference for what elements are / are not exported.

  • Help with Exporting tables to ePub

    I'm looking for help exporting tables from InDesign to epub.  Is there an easy way to do this and preserve formatting?

    Hi,
    We need more details to help you out here. Could you please explain what attributes you wish to be preserved in tables while exporting to EPUB. Which version of Indesign are you using?
    Regards,
    Pooja
    InDesign Engineering

  • Need help to create export table procedure

    Hi,
    I have created a procedure, which may use to do following things:
    1. first create a duplicate table of sys.aud$ records
    2. export that duplicate table
    here I am enclosing my code:
    1. create or replace procedure crt_tab
    2. is
    3. sqlstring varchar2(100);
    4. tablename varchar2(100);
    5. sys_date varchar2(100);
    6. h1 number;
    7. begin
    8. select to_char(sysdate,'DDMMYYYY_HH12MISSAM') into sys_date from dual;
    9. tablename :='AUDIT_RECORD_'||sys_date;
    10. sqlstring := 'create table ' || tablename|| ' as select * from sys.aud$';
    11. execute immediate sqlstring;
    12. h1 := dbms_datapump.open(operation=>'EXPORT',job_mode=>'TABLE',job_name=>NULL,version=>'COMPATIBLE');
    13. dbms_datapump.add_file(handle =>h1, filename =>tablename||'.dmp',directory =>'AUDIT_RECORD', filetype =>1);
    14. dbms_datapump.add_file(handle =>h1,filename =>tablename||'.log',directory =>'AUDIT_RECORD',filetype =>3);
    15. dbms_datapump.metadata_filter(h1,'NAME_LIST','(''tablename'')');
    16. dbms_datapump.start_job(h1);
    17. dbms_output.put_line('Data Pump job started successfully');
    18. end;
    Well, in line number 15. I am passing a variable tablename as a parameter to dbms_datapump.metadata_filter but it exporting an empty dump. Could you please let me know how to pass a variable value in this.
    looking forward to your early response.
    Regards,
    M.A.Bamboat
    [email protected]

    SQL> ed
    Wrote file afiedt.buf
      1  DECLARE
      2    l_dp_handle     NUMBER;
      3    l_last_job_state VARCHAR2(30) := 'UNDEFINED';
      4    l_job_state     VARCHAR2(30) := 'UNDEFINED';
      5    l_logfilename     VARCHAR2(20) := to_char(sysdate, 'DDMMRRRR') || '.log';
      6    l_expfilename     VARCHAR2(20) := to_char(sysdate, 'DDMMRRRR') || '.dmp';
      7    l_tbl_name     VARCHAR2(30) :='EMP';
      8  BEGIN
      9    l_dp_handle := DBMS_DATAPUMP.OPEN(operation   => 'EXPORT',
    10                          job_mode    => 'TABLE',
    11                          remote_link => NULL,
    12                          job_name    => 'SAUBHIK_EXPORT',
    13                          version     => 'COMPATIBLE');
    14    DBMS_DATAPUMP.ADD_FILE(handle     => l_dp_handle,
    15                     filename     => l_expfilename,
    16                     directory => 'SAUBHIK',
    17                     filetype     => DBMS_DATAPUMP.KU$_FILE_TYPE_DUMP_FILE);
    18    DBMS_DATAPUMP.ADD_FILE(handle     => l_dp_handle,
    19                     filename     => l_logfilename,
    20                     directory => 'SAUBHIK',
    21                     filetype     => DBMS_DATAPUMP.KU$_FILE_TYPE_LOG_FILE);
    22    dbms_datapump.metadata_filter(handle => l_dp_handle,
    23                         name   => 'NAME_EXPR',
    24                         value  =>'= '||''''||l_tbl_name||'''');
    25    dbms_datapump.start_job(l_dp_handle);
    26    dbms_datapump.detach(l_dp_handle);
    27  EXCEPTION
    28    WHEN OTHERS THEN
    29      dbms_datapump.stop_job(l_dp_handle);
    30      RAISE;
    31* END;
    SQL> /
    PL/SQL procedure successfully completed.
    SQL> SELECT * FROM user_datapump_jobs;
    JOB_NAME                 OPERATION                JOB_MODE                    STATE                    DEGREE ATTACHED_SESSIONS DATAPUMP_SESSIONS
    SAUBHIK_EXPORT                 EXPORT                     TABLE                    EXECUTING                         1       0           2
    SQL> /
    JOB_NAME                 OPERATION                JOB_MODE                    STATE                    DEGREE ATTACHED_SESSIONS DATAPUMP_SESSIONS
    SAUBHIK_EXPORT                 EXPORT                     TABLE                    NOT RUNNING                    0       0           0
    SQL> /
    no rows selected
    SQL>
    oracle@ubuntu-desktop:~/Documents$ pwd
    /home/oracle/Documents
    oracle@ubuntu-desktop:~/Documents$ ls -l 05092011*
    -rw-r----- 1 oracle oinstall 98304 2011-09-05 15:07 05092011.dmp
    -rw-r--r-- 1 oracle oinstall   928 2011-09-05 15:07 05092011.log
    oracle@ubuntu-desktop:~/Documents$

  • InDesign CS6 ePub Export : Tables with header and footer in HTML

    Hey there,
    does anyone know, whether InDesign CS6 also exports Table Headers and footers correctly into the XHTML-File of the ePub.
    What I mean, is whether the elements <thead> and <tfoot> are created?
    Or is it only possible to steer this via the CSS-Classnames which can be given in the tableformats?
    Generally I think it would be better if the user had the chance to map other exporttags to its elements than just p, em, strong, h1-h6.
    it would be useful to also put in other elements by hand.
    Best regrads.

    Magnolee2 wrote:
    does anyone know, whether InDesign CS6 also exports Table Headers and footers correctly into the XHTML-File of the ePub.
    What I mean, is whether the elements <thead> and <tfoot> are created?
    By "also", do you mean the behavior is changed with respect to CS5/CS5.5? In those, thead and tfoot are created correctly. (Although, quite disconcerting, in the order "thead / tfoot / tbody". ePub renderers based on Webkit display them correctly nevertheless, but others do not. An extremely annoying free interpretation of the W3C rules.)

  • How can we export table data to a CSV file??

    Hi,
    I have the following requirement. Initially business agreed upon, exporting the table data to Excel file. But now, they would like to export the table data to a CSV file, which is not being supported by af:exportCollectionActionListener component.
    Because, when i opened the exported CSV file, i can see the exported data sorrounded with HTML tags. Hence the issue.
    Does someone has any solution for this ... Like, how can we export the table data to csv format. And it should work similar to exporting the data to excel sheet.
    For youre reference here is the code which i have used to export the table data..
    ><f:facet name="menus">
    ><af:menu text="Menu" id="m1">
    ><af:commandMenuItem text="Print" id="cmi1">
    ><af:exportCollectionActionListener exportedId="t1"
    >title="CommunicationDistributionList"
    >filename="CommunicationDistributionList"
    >type="excelHTML"/> ---- I tried with removing value for this attribute. With no value, it did not worked at all.
    ></af:commandMenuItem>
    ></af:menu>
    ></f:facet>
    Thanks & Regards,
    Kiran Konjeti

    Hi Alex,
    I have already visited that POST and it works only in 10g. Not in 11g.
    I got the solution for this. The solution is :
    Use the following code in jsff
    ==================
    <af:commandButton text="Export Data" id="ctb1">><af:fileDownloadActionListener contentType="text/csv; charset=utf-8"
    >filename="test.csv"
    >method="#{pageFlowScope.pageFlowScopeDemoAppMB.test}"/>
    ></af:commandButton>
    OR
    <af:commandButton text="Export Data" id="ctb1">><af:fileDownloadActionListener contentType="application/vnd.ms-excel; charset=utf-8"
    >filename="test.csv"
    >method="#{pageFlowScope.pageFlowScopeDemoAppMB.test}"/>
    ></af:commandButton>
    And place this code in ManagedBean
    ======================
    > public void test(FacesContext facesContext, OutputStream outputStream) throws IOException {
    > DCBindingContainer dcBindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    >DCIteratorBinding itrBinding = (DCIteratorBinding)dcBindings.get("fetchDataIterator");
    >tableRows = itrBinding.getAllRowsInRange();
    preparaing column headers
    >PrintWriter out = new PrintWriter(outputStream);
    >out.print(" ID");
    >out.print(",");
    >out.print("Name");
    >out.print(",");
    >out.print("Designation");
    >out.print(",");
    >out.print("Salary");
    >out.println();
    preparing column data
    > for(Row row : tableRows){
    >DCDataRow dataRow = (DCDataRow)row;
    > DataLoaderDTO dto = (DataLoaderDTO)dataRow.getDataProvider();
    >out.print(dto.getId());
    >out.print(",");
    >out.print(dto.getName());
    >out.print(",");
    >out.print(dto.getDesgntn());
    >out.print(",");
    >out.print(dto.getSalary());
    >out.println();
    >}
    >out.flush();
    >out.close();
    > }
    And do the following settings(*OPTIONAL*) for your browser - Only in case, if the file is being blocked by IE
    ==================================================================
    http://ais-ss.usc.edu/helpdoc/main/browser/bris004b.html
    This resolves implementation of exporting table data to CSV file in 11g.
    Thanks & Regards,
    Kiran Konjeti

  • Export table data in a flat file without using FL

    Hi,
    I am looking for options where I can export table data into a flat file without using FL(File Layout) i.e., by using App Engine only.
    Please share your experience if you did anything as this
    Thanks

    A simple way to export any record (table/view) to an csv fiel, is to create a rowset and loop through all record fields, like below example code
    Local Rowset &RS;
    Local Record &Rec;
    Local File &MYFILE;
    Local string &FileName, &strRecName, &Line, &Seperator, &Value;
    Local number &numRow, &numField;
    &FileName = "c:\temp\test.csv";
    &strRecName = "PSOPRDEFN";
    &Seperator = ";";
    &RS = CreateRowset(@("Record." | &strRecName));
    &RS.Fill();
    &MYFILE = GetFile(&FileName, "W", %FilePath_Absolute);
    If &MYFILE.IsOpen Then
       For &numRow = 1 To &RS.ActiveRowCount
          &Rec = &RS(&numRow).GetRecord(@("RECORD." | &strRecName));
          For &numField = 1 To &Rec.FieldCount
             &Value = String(&Rec.GetField(&numField).Value);
             If &numField = 1 Then
                &Line = &Value;
             Else
                &Line = &Line | &Seperator | &Value;
             End-If;
          End-For;
          &MYFILE.WriteLine(&Line);
       End-For;
    End-If;
    &MYFILE.Close(); You can of course create an application class for generic calling this piece of code.
    Hope it helps.
    Note:
    Do not come complaining to me on performance issues ;)

  • I'm getting a "The procedure entrypoint ssSr192x__​ssSr192drv​ssSrReset could no be located in the dynamic link library ssSR192x.d​ll" because the ActiveX instrument driver DLL doesn't have the function names in the export table.

    Is there a way for my CVI project to reference the functions in the ActiveX without including the instrument .fp in the project?
    Thanks much.
    I'm confused on how CVI uses ActiveX components and hope someone can help.
    I'm using an ActiveX driver from an instrument manufacturer and I use the .TLB to generate a .fp, .c, and .h file. If I register the .dll and load the .fp in my project, all is well. Unfortunately in my application the functions to control this instrument are in another DLL whose .lib I include in my CVI projec
    t. Running the CVI project this way gives me "The procedure entrypoint ssSr192x__ssSr192drvssSrReset could no be located in the dynamic link library ssSR192x.dll" because the instrument function names aren't in the export table in the instrument DLL. Non-ActiveX DLLs have the export tables so everything works for them.
    Program structure with non-ActiveX DLLs:
    CVI project (.exe with common.lib in project list)
    |
    V
    Common DLL (MeasDMM() with hp1234.lib in project list)
    |
    V
    Instrument DLL (hp1234_measure())
    Since I get a .c and .h file from the .TLB, I've tried recompiling the DLL (.dll and .lib produced) and the functions seem to work, but I get "Class not registered" errors unless I play games with the registry so I'm obviously violating numerous Microsoft rules!
    Is there a way for my CVI project to reference the functions in the ActiveX without including the instrument .fp in the project? Thanks much.
    Jeff Fish
    Advisory Test Engineer
    StorageTek

    Hello Jeff,
    Where were your getting the .lib file for the ActiveX DLL? Did you use the "hp1234"
    ActiveX driver generated by the "Create ActiveX Automation Controller" CVI Tool to build a static library? If you open an include file and choose Options >> Generate DLL..., it will generate source code or a static import library to load the specified DLL and load functions specified in the include file (this only works if the functions are exported from a DLL). However, in the case of our ActiveX Automation Controllers, ActiveX calls are used to access a DLL. This means that you do not need an import library. You should be able to open the "hp1234" source file and click Options >> Create Object File. Simply #include "hp1234.h" and add "hp1234.obj" to your Common DLL project;
    the .fp file is not necessary. If this does not answer your questions or if you experience further difficulty, please post further details on what you are doing and the errors that are being encountered ("play games with the registry" and "recompiling 'the' DLL" are a bit vague in this case).
    Jeremiah
    Applications Engineer
    National Instruments
    http://www.ni.com/ask

Maybe you are looking for

  • Password protected home Wi-Fi not working with iPhone. Help.

    I will try to make this short and to the point. My phone will detect the home network, ask me for the password, join it, and show the wifi icon, full to the top. But it doesn't allow for surfing the net/sending email. It also doesn't show the ip addr

  • Conditions Need to decided for ASO or BSO cube?

    Hi Could you please tell me on what conditions or business needs we need to decided whether we need to build an ASO or BSO cube?, which dimension needs to be Label only or Stored or Accounts or Multiple Hierarchy Enabled property? Which needs to be D

  • Where can we access BW queries and Infocubes?

    Hi All, We are able to build universe over an Infocube from SAP BW. Right now we are able to access the BW queries from Infoview by creating an olap intelligence connection. Is it the only way to access BW queries or Is it possible to access BW queri

  • Where can I find lost photos?

    I have a G3 iBook with OS X.2.8 and iPhoto 2. I was burning photos from my library to CD and durung this process I accidentally ejected the CD. Of course, my computer hated that. Not only that these photos (~200) are gone from the CD, but I can"t eve

  • Navigation block shows text and key

    Hello everybody! Happy new year for all. I have a problem with the web navigation block. I have setup that only the text is shown. If I use the attribute in the report or in the navigation block I see the text only (that is what I need). Now I will c