Connect to SQL Server from Powerpoint

懵懂的女人 提交于 2019-12-12 14:29:58

问题


How can I connect to a SQL DB from Powerpoint (be it 2007 or 2010) to generate reports? I've seen quite a few forums and most of them talk about using external tools.

Check http://www.officekb.com/Uwe/Forum.aspx/powerpoint/34863/Linking-PowerPoint-to-a-database

http://www.ljzsoft.com/pptreport/help/ppt-report-help.htm

Isnt there any out of the box solution for this?

P.S. I've also posted this at the MSDN Forum. Didnt get any replies hence posting it here


回答1:


Start looking into VBA for PowerPoint. This helps with referencing the objects and manipulating PP. You'll need to look into using SQL Server for VBA if you want to provide the content for TextFrames, grids, or Excel Charts.




回答2:


I would Just do it in Excel, then embed the Excel object in PP Slide. Or Convert the Reports to Images use those.

Coding report in PowerPoint just seems wrong.



来源:https://stackoverflow.com/questions/6747946/connect-to-sql-server-from-powerpoint

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!