Can Adobe read specific text from Excel and merge them together?
I have a catalog in PDF format with thousands of part numbers. I want to be able to click on each part number and be directed to a specific web page. All web pages will be different. I know how to do this ONE at a time but that would be too time consuming and not something my company would be willing to do. I have an Excel spreadsheet with the part numbers listed in one column and the URL's in one and a column of them as hyperlinks already. Is it possible for Adobe to match the part numbers from both files and merge them together?
Thanks!
Amanda
The part numbers will all be together but most have alot of dashes and some are very long. Here are 3 examples. Alot of them are this size, some much larger but they are all together on one line.
CV-LED-W
SDOP-LED-2M
SIF-232
Thanks,
Amanda
Similar Messages
-
Reading long text from excel file to an internal table
Hi
Can any body tell me how to read long text from excel file to an internal table.
When i am using this FM KCD_EXCEL_OLE_TO_INT_CONVERT then it is reading only 32 characters from each cell.
But in my excel sheet in one of the cell has very long text which i need to upload into a internal table.
may i know which FM or what logic i need to use for this problem.
RegardsHi,
Here is an example program. It will upload an Excel file with two columns. You could also assign the Excel structure dynamically, but I wanted to keep the example simple. The main point is that the internal table (it_excel in this example) must match the Excel structure that you want to convert.
Remember, this is just an example to help you figure out how to properly use the technique. It will certainly need to be modified to fit your requirements, and as always there may be a better way to get the Excel converted... this is just one possibility that has worked for me in the past.
*& Report zexcel_upload_test *
REPORT zexcel_upload_test.
TYPE-POOLS: truxs.
TYPES: BEGIN OF ty_excel,
col_a(10) TYPE n,
col_b(35) TYPE c,
END OF ty_excel.
DATA: l_data_tab TYPE TABLE OF string,
l_text_data TYPE truxs_t_text_data,
l_gui_filename TYPE string,
it_excel TYPE TABLE OF ty_excel.
FIELD-SYMBOLS: <wa_excel> TYPE ty_excel.
PARAMETERS: p_file TYPE rlgrap-filename.
* Pass the file name in the correct format
l_gui_filename = p_file.
* Upload data from PC
CALL METHOD cl_gui_frontend_services=>gui_upload
EXPORTING
filename = l_gui_filename
filetype = 'ASC'
has_field_separator = 'X'
CHANGING
data_tab = l_data_tab
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17.
IF sy-subrc <> 0.
* MESSAGE ...
EXIT.
ENDIF.
* Convert from Excel into the appropriate itab
l_text_data[] = l_data_tab[].
CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
EXPORTING
i_field_seperator = 'X'
i_tab_raw_data = l_text_data
i_filename = p_file
TABLES
i_tab_converted_data = it_excel
EXCEPTIONS
conversion_failed = 1
OTHERS = 2.
IF sy-subrc <> 0.
* MESSAGE ...
EXIT.
ENDIF.
LOOP AT it_excel ASSIGNING <wa_excel>.
* Do something here...
ENDLOOP.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
PERFORM filename_get CHANGING p_file.
* FORM filename_get *
FORM filename_get CHANGING p_in_file TYPE rlgrap-filename.
DATA: l_in_file TYPE string,
l_filetab TYPE filetable,
wa_filetab TYPE LINE OF filetable,
l_rc TYPE i,
l_action TYPE i,
l_init_dir TYPE string.
* Set the initial directory to whatever you want it to be
l_init_dir = 'C:\'.
* Call the file open dialog without multiselect
CALL METHOD cl_gui_frontend_services=>file_open_dialog
EXPORTING
window_title = 'Load file'
default_extension = '.XLS'
default_filename = l_in_file
initial_directory = l_init_dir
multiselection = 'X'
CHANGING
file_table = l_filetab
rc = l_rc
user_action = l_action
EXCEPTIONS
file_open_dialog_failed = 1
cntl_error = 2
error_no_gui = 3
OTHERS = 4.
IF sy-subrc <> 0.
REFRESH l_filetab.
ENDIF.
* Read the selected filename
READ TABLE l_filetab INTO wa_filetab INDEX 1.
IF sy-subrc = 0.
p_in_file = wa_filetab-filename.
ENDIF.
ENDFORM. " filename_get
Regards,
Jamie -
I recently upgraded to a new iphone. Everything transferred except my photos. Can I retrieve my photos from iCloud and transfer them to my new phone? My old phone has already been transferred to a new user.
Did you restore your iCloud backup? That should recover camera roll photos.
-
How to Read specific data from file and do a calculation and display on the output
FYI: Below is the function use for the writing:
-OpenFile(use ASCII)
-sprintf
-WriteFile
Example: Output from the doc file
…EndTime: 09:34:48 program time: 0.567663 sec
…EndTime: 09:36:48 program time: 0.666666 sec
My objective is to read data 0.666666 (FYI: is last sentence of the file) to do some calculation. How can we read specific data(specific location) from file..
Any advice or help?
What is the function needed?I would consider counting line feeds and checking for end-of file to isolate the last line, which then can be read using fscanf...
Have a look at getc...
character = fgetc ( stream );
if ( character == '\n' ) // new line
if ( character == EOF ) // end-of-file -
How can I open all my itunes libraries and merge them into one?
Some of my music can't be opened by itunes because it says it is in another library. As there are several of these and they won't open,I can't see where the songs I want are. Therefore I would like to open ALL the libraries and merge them into one. Thanks for any help.
Hmm, read that post of Dave Sawyer's and thought well, that's Ok I have it on my iPod, but no, it's not there either. Then resorted to Time Machine (not used for a few months (took it away with us when we evacuated to avoid Cyclone Yasi) only to find that is playing up also, and it doesn't appear to be anywhere there either!
One thing leads on to another - Time Machine has only backed up to 3 months back; then there is nothing beyond! yet there is tons of stuff on it. Maybe it backs up the whole system each time, and not just the changes made inbetween times. The prefs. won't appear and so I can't change the setup.
All this just because of one sone! -
Can Adobe Reader be installed from file
Hi,
Looking to install "Adobe Reader 9 / Windows XP SP2 - SP3"
Problem - my fixed pc is on a slow connection, my dial-up ISP disconnects after 2 hours, nothing I can do about it. (Unfortunately being distant from the phone exchange broadband is n/a).
Frustratingly the 33.5MB (excl Google toolbar) download cannot quite complete in 2 hours. Tried a few times, once only needed another 30 seconds!
Q. Can I install from file. If so I can download and "save to file" to a Vista laptop and copy the setup file to the WinXP pc. Two reasons for suspecting that's not possible are, the advice to "run" and not "save to file", and an active-x "set-up" control that appears to want to install into my IE (blocked by my AV).
If it is possible, must I allow the set-up control to install into IE on the Vista (I don't want to cause any problems on the Vista, already had other problems with Adobe Reader on that).
TIAThanks for that Penrath,
Normally I would have just gone ahead and tried. Your experience of exactly what I needed to do overcame my "once bitten" hesitation.
And now the feedback - got old of "AdbeRdr90_en_US.exe", ran the exe from file. With a quick look at one or two pdf's all seems fine!
Thanks again -
Read header text from vf01 and print in script main window
Hi Gurus,
I need to read text from vf01 header note 1, there user type max 10 lines i want to read that 10 lines and print in sap script main window after line item printed. i used read text but one line only fetched. i declare variable like data : NEXRSP LIKE TLINE-TDLINE and read_text function module. pls provide solution for this.
Regards
G.VendhanHI GURUS,
Thank u for reply i declare like
ID = '0002'.
PERFORM READTEXT USING EN NAME OBJECT ID TEXT_OUTPUT.
NEXRSP = TEXT_OUTPUT . CLEAR TEXT_OUTPUT.
FORM READTEXT USING P_EN
P_NAME
P_OBJECT
P_ID
P_TEXT_OUTPUT.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = P_ID
LANGUAGE = P_EN
NAME = P_NAME
OBJECT = P_OBJECT
TABLES
LINES = LINES
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8.
LOOP AT LINES.
P_TEXT_OUTPUT = LINES-TDLINE.
EXIT.
ENDLOOP.
FREE LINES. CLEAR LINES.
ENDFORM. " READTEXT -
I can't read properly texts from Hungary.
In my work, I have to view and correct hungarian text with different accents that my MAC doesn't recognize. However when I use a PC, I don't have that problem, how can I fix this?
In my work, I have to view and correct hungarian
text with different accents that my MAC doesn't
recognize. However when I use a PC, I don't have
that problem, how can I fix this?
You probably need to provide us with more info about what program you are using to read the text, and how the text is being produced. If it is Unicode Hungarian, then OS X Unicode apps should have no problem reading it, but old apps like Appleworks and WordX cannot. If non-Unicode Hungarian, then you will probably need to make sure that a font with a CE after the name is active in your app. -
I record my classroom lectures in law school to help study for finals. However in the hour and a half class there are many pauses, bad questions, wrong answers, useless stories or announcements that I do not have to hear again. I import the audio into gargae band and cut out all the unnessesary stuff. I end up with a file of 100 + clips. If i spend the time dragging and droping them so there are no spaces in between clips the process takes forever. However the reward is relistenign to an hour and half lecture in 15-20 minutes. Thats about how much content the professor gives. Is there a way to merge all the audio by selecting some option? I bascially want garage band to just slide all the clips and condence it to one clip.
I have takent the time the last few semesters to do this the hard way and have been able to relisten to an entire class in 3.5 hours which is huge! if you have ever been in law school. But I don't have that kind of time anymore. HELP!petruch wrote:
Is there a way to merge all the audio by selecting some option?
http://www.bulletsandbones.com/GB/GBFAQ.html#cutsectionnospace
(Let the page FULLY load. The link to your answer is at the top of your screen) -
How to read XML content from IPortalComponentRequest and parse them
Hi ,
I have a portal application.The application has 2 components(Comp1,comp2).
Comp1 is JspDynpage and Comp2 is AbstractPortalComponent.
Comp1- has a iframe element which point to the external url and has a parameter return_url.
retrun_url has a value as url to Comp2(http://ibm0343:50000/irj/servlet/prt/portal/prtroot/NewUrlProj.NewUrlComp)
When an event occurs in the external site,i suppose to receive XML content in return_url(ie Comp2),how can i check using the request if the received content is XML and how do i parse them.
I have already seen blogs from Prakash singh in which it refers a xml fixed location in webserver.Hi Detlev,
i am reposting this once again as the previous
reply didnt align good.
Thanks for your reply.The scenario is that
My portal application has to communicate with external GIS(Graphical information system)
service provider client application.
They say that i have to use iframe in my portal application.
Here is the snipet of the iframe tags.
<iframe
id="Nedbrowser"
name="Nedbrowser"
width="100%"
height="100%"
frameborder="no"
marginheight="0"
marginwidth="0"
scrolling="no"
style="position:absolute; top:0; left:0; width:800; height:400; z-index:100; visibility:visible"
src="http://nbg.nedg.nl/nbgint/NBG_INT_main.asp?action=CHART&datasource=NBGMV&product=INTERNET&size_x=300&size_y=300&result_frame=Results&
result_url=http://ibm0343:50000/irj/servlet/prt/portal/prtroot/NewUrlProj.NewUrlComp&
default_centre_x=256000&default_centre_y=471000&default_width=0.5">
</iframe>
<iframe
id="Results"
name="Results"
width="100%"
height="100%"
frameborder="no"
marginheight="0"
marginwidth="0"
scrolling="no"
style="position:absolute; top:400; left:0; width:800; height:200; z-index:100; visibility:visible"
src="about:blank">
</iframe>
When my portal application is started, comes the GIS map in the iframe with in my portal application.
When the user clicks in the area of the map,Gis application returns xml data to the return_url.
The reurn_url is my PortalAbstractComponent in which i have to parse the xml and use it for further processing in R3 system. -
Removing adobe reader icon from excell and outlook
How can I permanently remove the adobe reader V9 icon from Excel and Outlook? I used toolbar customize to delete the icons but they come back when I restart the programs.
Sorry, your question is not clear. Can you give us the exact wording (or a screenshot) of that notification?
What is your operating system? -
How to read the data from excel file and store into the table?
Hi All,
I have table with BLOB datatype contains a excel file. I have to read that data from excel and store into one table with all the fields in excel.
All the excel fields and my table columns are same.
Can you share with me how can acheive this using LOB's?
ThanksHi OraSuirya,
you can try with external tables .
syntax as follows
create table ext_table_csv (
i Number,
n Varchar2(20),
m Varchar2(20)
organization external (
type oracle_loader
default directory ext_dir
access parameters (
records delimited by newline
fields terminated by ','
missing field values are null
location ('file.csv')
reject limit unlimited;
For this you need to create directory
Directory Creation syntax:
create or replace directory ext_dir as 'D:\oracle\user_dir\ext_dir';
grant read, write on directory ext_dir to <User>;
please paste the excel file in the particular directory .
I hope this will help you.
Please correct me if I am wrong anywhere .
Thanks,
Tippu. -
Having trouble reading specific lines from a text file and displaying them in a listbox
I am trying to read specific lines from all of the text files in a folder that are reports. When I run the application I get the information from the first text file and then it returns this error: "A first chance exception of type 'System.ArgumentOutOfRangeException'
occurred in mscorlib.dll"
Below is the code from that form.
Option Strict On
Option Infer Off
Option Explicit On
Public Class frmInventoryReport
Public Function ReadLine(ByVal lineNumber As Integer, ByVal lines As List(Of String)) As String
Dim intTemp As Integer
intTemp = lineNumber
Return lines(lineNumber - 1)
lineNumber = intTemp
End Function
Public Function FileMatches(ByVal folderPath As String, ByVal filePattern As String, ByVal phrase As String) As Boolean
For Each fileName As String In IO.Directory.GetFiles(folderPath, filePattern)
If fileName.ToLower().Contains(phrase.ToLower()) Then
Return True
End If
Next
Return False
End Function
Private Sub frmInventoryReport_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim intcase As Integer = 1
Dim strTemp, strlist, strFile As String
Dim blnCheck As Boolean = True
strFile = "Report Q" & intcase.ToString & ".txt"
Do While blnCheck = True
strFile = "Report Q" & intcase.ToString & ".txt"
Dim objReader As New System.IO.StreamReader("E:\Furry Friends Animal Shelter Solution\Furry Friends Animal Shelter\" & strFile)
Dim allLines As List(Of String) = New List(Of String)
Do While objReader.Peek <> -1
allLines.Add(objReader.ReadLine())
Loop
objReader.Close()
strlist = ReadLine(1, allLines) & "" & ReadLine(23, allLines)
lstInventory.Items.Add(strlist)
intcase += 1
strTemp = intcase.ToString
strFile = "Report Q" & intcase.ToString & ".txt"
blnCheck = FileMatches("E:\Furry Friends Animal Shelter Solution\Furry Friends Animal Shelter\", "*.txt", intcase.ToString)
Loop
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim intcase As Integer = 1
Dim strTemp, strlist, strFile As String
Dim blnCheck As Boolean = True
strFile = "Report Q" & intcase.ToString & ".txt"
Do While blnCheck = True
strFile = "Report Q" & intcase.ToString & ".txt"
Dim objReader As New System.IO.StreamReader("E:\Furry Friends Animal Shelter Solution\Furry Friends Animal Shelter\" & strFile)
Dim allLines As List(Of String) = New List(Of String)
Do While objReader.Peek <> -1
allLines.Add(objReader.ReadLine())
Loop
objReader.Close()
strlist = ReadLine(1, allLines) & "" & ReadLine(23, allLines)
lstInventory.Items.Add(strlist)
intcase += 1
strTemp = intcase.ToString
strFile = "Report Q" & intcase.ToString & ".txt"
blnCheck = FileMatches("E:\Furry Friends Animal Shelter Solution\Furry Friends Animal Shelter\", "*.txt", intcase.ToString)
Loop
End Sub
End Class
Sorry I'm just beginning coding and I'm still a noob. Any help is appreciated. Thank you!Ok, so if I'm following this correctly you should be able to just loop through all of the files in that folder whose file name matches the pattern and then read the first 22 lines, recording only the first and the last.
Exactly how you store the animal data probably depends on how you are going to display it and what else you are going to do with it. Is there anything other than name and cage number that should be associated with each animal?
You might want to make a dataset with a datatable to describe the animal, or you might write a class, or you might just use something generic like a Tuple. Here's a simple class example:
Public Class Animal
Public Property Name As String
Public Property Cage As String
Public Overrides Function ToString() As String
Return String.Format("{0} - {1}", Name, Cage)
End Function
End Class
With that you can use a routine like the following to loop through all of the files and read each one:
Dim animals As New List(Of Animal)
Dim folderPath As String = "E:\Furry Friends Animal Shelter Solution\Furry Friends Animal Shelter\"
For Each filePath As String In System.IO.Directory.GetFiles(folderPath, "Report Q?.txt")
Using reader As New System.IO.StreamReader(filePath)
Dim lineIndex As Integer = 0
Dim currentAnimal As New Animal
While Not reader.EndOfStream
Dim line As String = reader.ReadLine
If lineIndex = 0 Then
currentAnimal.Name = line
ElseIf lineIndex = 22 Then
currentAnimal.Cage = line
Exit While
End If
lineIndex += 1
End While
animals.Add(currentAnimal)
End Using
Next
'do something to display the animals list
Then you might bind the animals list to a ListBox, or loop through the list and populate a ListView. If you decided to fill a datatable instead of making Animal instances, then you might bind the resulting table to a DataGridView.
There are lots of options depending on what you want and what all you need to do.
Reed Kimble - "When you do things right, people won't be sure you've done anything at all" -
Hello, for a multilingual catalog project I would have to know how and with what tool I can place text from Excel or a database in text frames / tables. The basic idea is to provide the text box with an ID (eg << text_eng_art_nr_987654>>) and above to make the connection. Does anyone have a tip. Thanks in advance !!!
BerndData merge is really useful in many circumstances, but my first question would be about the size of the project. A really large catalog might be better handled by processing an IDML in some kind of translation memory tool.
If all of your multilingual content is already in Excel, then it's probably best handled with a Data Merge. Note that you can't save Unicode CSV out of Excel for the merge, so for many languages you'll need to save "Unicode Text" out of Excel and tweak your import settings when you select a Data Source for encoding (Unicode) and delimiter (tab instead of comma). -
How to read the data from Excel file and Store in XML file using java
Hi All,
I got a problem with Excel file.
My problem is how to read the data from Excel file and Store in XML file using java excel api.
For getting the data from Excel file what are all the steps i need to follow to get the correct result.
Any body can send me the code (with java code ,Excel sheet) to this mail id : [email protected]
Thanks & Regards,
Sreenu,
[email protected],
india,If you want someone to do your work, please have the courtesy to provide payment.
http://www.rentacoder.com
Maybe you are looking for
-
How do I create a dependant drop down in a web form?
I am trying to add a web form to a web page that includes a dependant drop down menu. For example, I'd like there to be a drop down menu called "Interested Class" with three fields: "Tribe Fit", "Tribe Life" and "Tribe Core". When a user selects one
-
Help .. am new to db in hava
hi there i have this code i guess its a database connection to MYSQL ... i need to change it to SQL SERVER 2000 ..... so how it differs .....?????and i need some comments to understand what its all about ? please this is urgent ....??? * Servlet for
-
How Production Order finish date and time is being comptued by SAP?
Hello Expert, How Production Order finish date and time is being comptued by SAP? for example, we create a Production Order via CO01, the basic start date is 29.09.2008 and time is 04:00 it gives us basic finish date is 29.09.2008 and time is 13:28.
-
How can i tell which card i have instal
i dont know if i have an audigy gamer, MP3, or audigy . is there something i can use to hepl me out thanksMessage Edited by madtical777 on 06-06-2005 02:23 AM
-
I got carried away and did more undos than I should have. Is there a way to do multiple re-dos, so I can go back to where I was? If not, I'm going to have to edit everything all over again, including oomplex effect attributes. Thanks