




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
ARCHIVOS DE COMPUTACION ENFOCADO EN ESTUDIOS CUANTITATIVOS
Typology: Schemes and Mind Maps
1 / 8
This page cannot be seen from the preview
Don't miss anything!
import tkinter as tk from tkinter import filedialog, messagebox import pandas as pd from docx import Document
excel_path = None def cargar_excel(): global excel_path
excel_path = filedialog.askopenfilename( title="Selecciona el archivo Excel", filetypes=(("Archivos Excel", ".xlsx"), ("Todos los archivos", ".*")) ) if excel_path: messagebox.showinfo("Archivo cargado", f"Archivo Excel cargado:\n{excel_path}") def exportar_a_word(): if not excel_path:
if word_template_path:
data = pd.read_excel(excel_path)
doc = Document(word_template_path)
Excel for row in data.iterrows():
for paragraph in doc.paragraphs: if "
doc.save("Informe_Tecnologico_Completado.docx") messagebox.showinfo("Exportación completada", "Los datos de Excel se exportaron a Word con éxito.")
btn_cargar_excel = tk.Button(root, text="Cargar Excel", command=cargar_excel) btn_cargar_excel.pack(pady=10)
btn_exportar_word = tk.Button(root, text="Exportar a Word con Plantilla", command=exportar_a_word) btn_exportar_word.pack(pady=10) root.mainloop()
abrir_ventana()