Copying Formatted Data
Are there any methods that can read a text file that contains tabs, carriage returns, etc. Then writes it out identically to an output file? I need something that can copy the exact formatting doing read and then write.
Thanks. Looking around I found PrintStream and PrintWriter. Would these work by any chance?
Similar Messages
-
2006 iMac running 10.4 OS. I copied files to ext. drive. Put in 10.6 disc and did a clean install (format) of 10.6. Copied data from ext. drive back to Mac. I didn't get all the files. CAN I REVERT BACK TO THE 10.4 OS SO I CAN COPY MY DATA PROPERLY?
How did you copy files to the external drive, and what files did you copy? Did you drag and drop in the Finder? Use a clone utility? What files did not successfully copy?
If you reformatted the drive as part of your install, then you won't be able to recover any files from the drive. Reverting back to (reinstalling) 10.4 will not help you.
Do you have a complete-drive backup of your old system?
Matt -
Copy & Paste Data to htmlb:textEdit
Hi,
when I Copy & Paste Data from MS Office to <htmlb:textEdit> the following occurs:
1) In the <htmlb:textEdit> note, the content is displayed without formatting. (OK)
2) Saved content is displayed without formatting in the backend. (OK)
3) Printing the content via SmartForms/Adobe pdf, #-signs are appearing. For example, spaces created with the tab key are displayed as ###. (PROBLEM!)
Are there anybody who knows how I can solve this problem. Basically, I just want to print what I see in my web application.
I suspect that the <htmlb:textEdit> control is not completely removing all formatting from MS Office.
What do you think?
Any help is greatly appreciated.
/ElvezHi Elvez,
I experienced, that the textedit uses '##' to identify a carriage return. We simply remove the placeholder, if we have to use the value of a textedit in other contexts.
I don't think that it is related to the copy from MS Office, since the textedit takes erverything as plain text.
Regards -
Hi,
I am working on Web Dynpro Java (SP 13) offline forms.
User has to fill the form offline and upload it. Data will be copied to web dynpro application.
I am using WDInteractiveFormHelper.transferPDFDataIntoContext method for coping data.
If the file is in correct format data is getting copied to context.
Only problem is, if user uploaded PDF document in some different format(with different XML schema), we need to display error message to the user. How can I check if execution of method "WDInteractiveFormHelper.transferPDFDataIntoContext"; is successful?
So that I can display error message & stop the document from getting uploaded(copying binary data).
Any ideas?
Thanks,
Apurvahi do like this::
*-- Convert the OTF data to PDF data
CALL FUNCTION 'CONVERT_OTF_2_PDF'
EXPORTING
use_otf_mc_cmd = 'X'
IMPORTING
bin_filesize = v_bin
TABLES
otf = lt_otf
doctab_archive = it_doctab
lines = lt_pdfdata
EXCEPTIONS
err_conv_not_possible = 1
err_otf_mc_noendmarker = 2
OTHERS = 3.
Regards
Ashok P -
Copy the data from one column to another column using @
I have two columns here - A and B.
Column A has a complicated formula that will generate results. I wanted the results in Column A to be reflected in Column B without pasting the A's formula in B. This will save me the trouble of editing formulas in more than 1 column if there is a need.
I saw somewhere that you can use "@" in column B but I have no idea how to use it.
Assumingly column A is the first column. I tried to insert '@1' in B's formula and change B's column properties' Data Format as "Treat Text as HTML". It does not work.
Please advise how I can do that.So is there any way to copy the data in Column A into Column B without putting the same formula? something like in Excel where we put "=C1". Its not possible in BI as it comes in excel.....The only way is to create a duplicate column in RPD or Answers screen and incorporate the formula and giving different name to it.
whats the problem if you duplicate the column with same formula?....Ok still if you dont want to see identical just write some pseudo logic say
Duplicated column f(x) case when 1=0 then column_name else formula end.....so it appears different to see but it outputs same.
UPDATED POST
Dont create in RPD,you can create a dummy column in that report request and change the f(x) to the above case i mentioned by taking the column from columns button in edit formula screen so when ever you edit the actual column formula that would reflect in the dummy column also as it is replicating from original one.Try and see
hope helps you.
Cheers,
KK
Edited by: Kranthi.K on Jun 2, 2011 1:26 AM -
Excel Spreadsheet as Data Source & Copying that Data to an Existing SharePoint List
Hello,
I have an Excel spreadsheet that I get daily and cut and paste into an existing SharePoint list. Is there a way to make that Excel spreadsheet a data source and copy the data to an existing SharePoint list with less manual involvement?
Tools at my disposal include: SharePoint 2010 Designer, InfoPath, and Access.
I thought there might be a REST method I could use via InfoPath but I'm not aware of any offhand.
Goal is to have a method to upload/overwrite an Excel file (stored in a SharePoint library), every day, and then automate the process of copy it to a SharePoint list (actually overwriting the old data in the SharePoint list).
Any help would be greatly appreciated.Hi,
We can create a console application and use C# code to read the data from the Excel file and using SharePoint .Net Client Object Model to add the data into a SharePoint list, then create a windows job to execute the console application.
The following articles for your reference:
How to: Create a Console Application
https://msdn.microsoft.com/en-us/library/office/ms438026(v=office.14).aspx
C# How To Read .xlsx Excel File With 3 Lines of Code
http://www.codeproject.com/Tips/801032/Csharp-How-To-Read-xlsx-Excel-File-With-Lines-of
How to: Create, Update, and Delete List Items
https://msdn.microsoft.com/en-us/library/office/ee539976%28v=office.14%29.aspx?f=255&MSPPError=-2147217396
Schedule a task
http://windows.microsoft.com/en-au/windows/schedule-task#1TC=windows-7
Best Regards
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
How to print formated data/report on client's printer (Web Application)
Hi All
I want to print some formatted data/report ( it might be 1000 pages) on user's printer.
Application is web based
Technology used are Java - jsp - servlets
i want functionality like...
when user click on print button/link, data is fetched from server and all pages (it is formated data so i want alignment on page while printing) should be printed one after another.
Also printer selection dialog should displayed one time when user click on print button/link.
Questions:
1. How i will transfer all data to client (web browser) from the server ??
2. And how i can print that data on user's printer ??
There is requirement (or limitation) that I can not use applet for this purpose.
And also it is not fix that we must use java tech., we can use any othere tech. but condition is that it must support multiple platform (in short platform indipendant)
There is solution like ...
I can use window.print() function of DOM/JavaScript,
but it prints only one page which is displayed on browser.
I don't want to display any page. and want to print all pages.
if any one done or have idea then let me know.
Thanks in Adv.
Shailesh Koradiyathanks linxpda for reply,
we can use ActiveX component for windows platform for printing purpose, same way we can use platform specific component for printing... (for linux, unix, sun solaris etc...)
if it is possible then let me inform.
Thanks,
Shailesh Koradiya -
UCCX 10.1 - Linked Server - Copying HR data to external SQL Server for reporting
I have a customer that is migrating from UCCX 7 to UCCX 10. They currently have a 2008 SQL Server R2 that they use for custom reports. They have a package that runs nightly to copy relevant data from UCCX 7 to the their server and then run reports daily against that database. Pretty easy when everything is in MS SQL. My plan was to set up a linked server in SQL 2008 to the UCCX server. This would allow me to easily run a query against Informix and move the data over as before. However, I am having problems adding the linked server.
I have installed the Informix drivers (both 32 and 64 bit) during the troubleshooting.
The DSN is created and connects to UCCX just fine.
When I attempt to add the linked server using 64 bit driver DSN I get the following:
Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "UCCX101".
OLE DB provider "MSDASQL" for linked server "UCCX101" returned message "[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed".
OLE DB provider "MSDASQL" for linked server "UCCX101" returned message "[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed".
OLE DB provider "MSDASQL" for linked server "UCCX101" returned message "[Informix][Informix ODBC Driver][-11302] Insufficient Connection information was supplied". (.Net SqlClient Data Provider)
When I attempt to add the linked server using the 32 bit driver DSN I get the following:
Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "32UCCX101".
OLE DB provider "MSDASQL" for linked server "32UCCX101" returned message "[Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application". (Microsoft SQL Server, Error: 7303)
It appears to me there is a 32/64 bit conflict no matter route I go.
Can anyone tell me what I am missing?
Is there a better approach to take to achieve the ultimate goal?
Any suggestions are greatly appreciated.
TIA
JohnI have created linked servers on an SQL2K box that points back to CCX. First off, you have to set the password for the UCCX HR user to some known value.
exec sp_dropserver 'fonccx9_01', 'droplogins'
EXEC sp_addlinkedserver
@server='fonccx9_01', -- Name of the Linked Server, when it is created.
@srvproduct='Microsoft OLE DB Provider for ODBC', -- OLE DB Provider.
@provider='MSDASQL', -- Provider_name.
@datasrc ='fonccx9-01', -- DSN Name of the ODBC Data Source.
@provstr= -- ODBC Connection String.
'Driver={IBM Informix ODBC};Server=fonccx9_01_uccx;Database=db_cra; Uid=uccxhruser; Pwd=Some-Password;'
EXEC sp_addlinkedsrvlogin
@rmtsrvname = 'fonccx9_01',
@useself = 'FALSE',
@rmtuser = 'uccxhruser',
@rmtpassword = 'Some-Password'
Note that the server name is "fonccx9-01", but the dash is an illegal character in the server name, so you have to change that to an underscore. You still have to manually build the ODBC data source on the box where you are trying to create the linked server. -
How to copy the data in a cube to another cube
Hi ,I created one cube by copying.Now I want the data available in earlier cube to Copied Cube.Plz can any one help in this.
Thanx in Advacnce
VasuYou can use the export datasource option to copy the data.
Another option is:
The steps for copying the contents of one cube to another:
1. Go to Manage -> Recontruct of the new cube.
2. Select the "selection button"(red , yellow, blue diamond button).
3.In the selection screen you can give the technical name of the old cube, requests ids you want to load, from & to date.
4.Execute and the new cube would be loaded.
Its all that easy!!!!!!
Refer this link:
Copying the structure of an Infocube -
How to print formatted data / report on user's printer in Web Application
Hi All
I want to print some formatted data/report ( it might be 1000 pages) on user's printer.
application is web based and tech. used are Java - jsp - servlets
now prob. is ...
how i will transfer all data to client (web browser) from the server and how i can print that data on user's printer ...??
there is requirement that I can not use applet for this purpose.
if any one done or have idea then let me know.
thanks
Shailesh KoradiyaHi
Its simple, first of all break ur data in terms of pages. Write the logic in one JSP.
suppose i have jsp PrintReport.jsp , for page 1 url will PrintReport.jsp?page=0 ... so on
get the page parameter in JSP
String page="";
if(request.getParameter("page")!=null)
page=request.getParameter("page");
get the rowcount from the Result and assume records per page is 100
if u have 1000 rows then 10 pages u have to serve
StartRowNumber=page*recordsPerPage
EndRowNumber=StartRowNumber+recordsPerPage
Execute a SQL query , select * from table where rownum between
StartRowNumber and EndRowNumber
Provide google like pageNumbers in ur HTML page
ie 1 2 3 4 5 6 ..10
Regarding printing , Create HTML button called 'print' and add Javascript ' window.print()' on clicking it.
Hope it would solve ur problem
Cheers
Rajendra Bandi -
Copying directory data from one server to another
Hi friends,
I maintain two directory server (ver. 5.2) with same domain (xxx.com) and i have to copy the entire data from one server.
I tried to export from a one server and import it on another server, but it didn't get copied and it is getting object class violation error,
Please give me some tips to copy the entire data along with password encryption, so the users should be able to login to the new server.
Regards,
IqbalBefore you copy the data, make sure the new server has all user-defned schema (objectclass, attribute) which reside on the first server. What you can do is to copy the schema over first. Then you can copy the data over.
-
Error When Refresh Formatted Data inside Excel Analyzer
I have build a Excel template and load up this to the BI Publisher Server. When I call this template after the log in works fine. When I refresh the data normal it works also fine, but when I try to refresh formatted Data I get the error "Error: This report does not support HTML as an output format." I will not use html output inside Excel, I will use the original Excel template with refreshed data.
Hi Tim,
The Refresh Formatted Data works on MS Excel 2003.
May need to check if its really supported on MS Office 2002.
Btw another question, is it possible to create an excel template without using Excel Analyzer?
Also when I used the generated excel file of Excel Analyzer as template, when the report is generated the data sheet sometimes is not filled with correct data or sometimes there is no data at all, even if the parameters used is the same as the one used in generating the original excel file using Excel Analyzer. This happens most of the time for reports with Concatenated Queries or SQL Queries using "CURSOR" to group a set of data. Note that on initial generation of excel file using Excel Analyzer, correct set of data is displayed. It is only when it is used as template and viewed/exported in Excel format that data is not properly loaded.
Please advise.
Thanks!
Uniz -
Copy the data from first line while dynamically adding a new line in table
Hi,
1. There is a table
2. An add button adds a new line to the table using 'AddInstance'
3. A record is entered in the first line
4. When the add button is clicked it adds a new line and along with it copies the data entered in the first line
My question is how to copy the data from the first line and show it in the new line added. This is required so that user can use most of the common values in the first line.
Thanks,
NikhilYou can use the following Java Script in the Click event of the button.
// Get the number of rows in the table
var nrows = xfa.resolveNodes("page.table.DATA[*]").length;
// Add a new instance(row) to the table
page.table.addInstance.instanceManager(1);
xfa.form.recalculate(1);
// Copy the values from the first line to the newly created row
page.table.DATA\[ nrows \].field1.rawValue = page.table.DATA\[ 0 \].field1.rawValue;
..........field2
..........field3
Thanks,
Chandra Indukuri -
Help - "Cannot copy file: Data error (Cyclic Redundancy Check)"
Hey there,
I'm having problems with my Zen Mosaic EZ00. Up until a few weeks ago it has been working fine however, since then, has begun to show the error message? "Cannot copy file: Data error (Cyclic Redundancy Check)" whenever I try to copy files on to it. I have tried the recovery software available and it only updated the firmware. Some files do occasionally (and very occasionally) copy but usually it shows the error message and cancels the copy.
I would really appreciate if anyone could help me with this?
Many thanks :smileytongue:sorry for the double post!
ive just realised that my ipod isnt actually charging, its just got the orange light blinking!
not too sure what is going on now!
lol -
Want to copy/append data in one table to another
Hi,
I have two similar tables Alo_table and Alo_table_test with different indexes, partitions etc.
Alo_table has some data. I want to copy/append this data in to Alo_table_test for further testing. How to copy/append data without changing the other settings from Alo_table to Alo_table_test?
Thanks in advance,
SMay be you are Looking for MERGE statement
It will Insert New Record if not Found to your Destinamtion table or Update if Record Found
MERGE INTO bonuses B
USING (
SELECT employee_id, salary
FROM employee
WHERE dept_no =20) E
ON (B.employee_id = E.employee_id)
WHEN MATCHED THEN
UPDATE SET B.bonus = E.salary * 0.1
WHEN NOT MATCHED THEN
INSERT (B.employee_id, B.bonus)
VALUES (E.employee_id, E.salary * 0.05);
Maybe you are looking for
-
Accidently synced my ipad with my computer and now I lost playlists that were only set up on my ipad does anyone know if I can get those back?
-
Publish Subscribe Server with Filters
Has anyone managed to get the WebLogic Server 10.3 HTTP Publish/Subscribe server to work with message filters? With a message filter configured, running with the Sun JVM I see errors of the following type (JRockit gives an error at the same point but
-
TS5376 Uninstall iTunes and reinstall
If I uninstall iTunes and then reinstall it as TS5376 suggests will I lose all my music? Paul
-
Asset Issue - When execute AR01, system throw a error msg .AB064
Hi Gurus, need guidance to solve the issue. When my user run a t-code AR01, System throw a error "No data was selected - Message no. AB064". Then checked through SU53. It shows that Authorization was successfully given. Checked with my Basis Co
-
Can I convert a mov to MPEG?
How do I convert a mov. file to an MPEG file? please help