Lotus Notes - Importar desde Word

 
Vista:

Importar desde Word

Publicado por Jesús (11 intervenciones) el 22/01/2007 11:59:58
¿Alguien sabe como importar datos de un documento word a notes?
Muchas gracias. Saludos
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:Importar desde Word

Publicado por Pedro Meza (89 intervenciones) el 22/01/2007 19:11:03
usa componentes de office

oWord = CreateObject("word.application")

etc..
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:Importar desde Word

Publicado por Hugo Correa (286 intervenciones) el 22/01/2007 20:54:31
Trata con este código:

Dim session As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Dim fileNum As Integer
Dim fileName As String
Set db = session.CurrentDatabase
Set doc = New notesdocument(db)
FileNum% = Freefile()
FileName$ = "c:\archivo.doc"
Open FileName$ For Input As FileNum%
' first line is header with price table info
Input #FileNum%,PriceName,ProductCode,ProductPrice,ProductMaint,ProductName,ProductCost,ProductSort,ProductDesc
margin = ProductPrice
Do While Not Eof(FileNum%)
Input #FileNum%,PriceName,ProductCode,ProductPrice,ProductMaint,ProductName,ProductCost,ProductSort,ProductDesc
Set doc = New notesdocument(db)
ProductLine = "MHC"
Select Case ProductSort
Case Is < 30000
Cat = "Software"
Case Is < 37000
Cat = "CSIM/EDA"
Case Is < 40000
Cat = "Universe"
Case Is < 50000
Cat = "System Builder"
Case Is < 60000
Cat = "Terminal Emulation"
Case Is < 80000
Cat = "DIVA"
Case Else
Cat = "General Products"
End Select
doc.form = "ProdServ"
doc.ProductLine = ProductLine
doc.Category = Cat
doc.StatusFlag = "Active"
doc.CostPercent = margin
doc.ProductCode = ProductCode
doc.Retail = ProductPrice
doc.cost = ProductCost
doc.SupportFee = ProductMaint
doc.ProductName = ProductName
doc.SortID = ProductSort
doc.ProductDesc = ProductDesc
Call doc.save(True,False)
Loop
Close FileNum%
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar