你可以使用Spire.Xls來實現(xiàn)。Spire.Xls可以讓你方便地將excel中指定的sheet導(dǎo)出為pdf文件,并且支持在導(dǎo)出時指定sheet2和sheet3。同樣可以使用該框架來快速預(yù)覽生成的pdf文件。
專注于為中小企業(yè)提供網(wǎng)站建設(shè)、做網(wǎng)站服務(wù),電腦端+手機端+微信端的三站合一,更高效的管理,為中小企業(yè)陽信免費做網(wǎng)站提供優(yōu)質(zhì)的服務(wù)。我們立足成都,凝聚了一批互聯(lián)網(wǎng)行業(yè)人才,有力地推動了1000+企業(yè)的穩(wěn)健成長,幫助中小企業(yè)通過網(wǎng)站建設(shè)實現(xiàn)規(guī)模擴充和轉(zhuǎn)變。
利用DataWindow.net在 vb.net 下導(dǎo)出PDF格式文件
利用datawindow.net,導(dǎo)出PDF文件,實現(xiàn)前提:
1.安裝Acrobat Distiller虛擬打印機,注意要用datawindow.net提供的打印驅(qū)動,在c:\program files\sybase\datawindow.net2.0\driver中,在文章最后,我會提供一個靜態(tài)安裝虛擬打印機的批處理文件,方便安裝。
2.安裝Ghostscript 7.05 ,在網(wǎng)上找,免費的。
3.導(dǎo)出PDF文件前,一要指定虛擬打印機名,其次導(dǎo)出格式為PDF(Export.PDF.Method=Distill!),另外還要指定 PDF.Distill.CustomPostScript=Yes。
具體代碼如下:
''' summary
''' 導(dǎo)出文件
''' /summary
''' param name="sender"/param
''' param name="e"/param
''' remarks/remarks
Private Sub btnExport_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExport.Click
Try
Dim strFilename, strPrinter As String
Dim saveDg As New SaveFileDialog
strPrinter = Me.dwPrint.Describe("DataWindow.Print.PrinterName")
saveDg.FileName = Me.dwPrint.Tag.ToString
saveDg.Filter = "Pdf文件|*.pdf|Excel文件|*.xls|所有文件|*.*"
If saveDg.ShowDialog = Windows.Forms.DialogResult.OK Then
strFilename = saveDg.FileName
If strFilename.IndexOf(".pdf") 0 Then
Me.dwPrint.Modify("DataWindow.Print.PrinterName='Acrobat Distiller'")
Me.dwPrint.Modify("DataWindow.Export.PDF.Method=Distill!")
Me.dwPrint.Modify("DataWindow.Export.PDF.Distill.CustomPostScript=Yes")
Me.dwPrint.SaveAs(strFilename, Sybase.DataWindow.FileSaveAsType.Pdf, True)
ElseIf strFilename.IndexOf(".xls") 0 Then
Me.dwPrint.SaveAs(strFilename, Sybase.DataWindow.FileSaveAsType.Excel, True)
End If
Me.dwPrint.Modify("DataWindow.Print.PrinterName='" + strPrinter + "'")
MessageBox.Show("導(dǎo)出成功!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information)
End If
Catch ex As Exception
MessageBox.Show(ex.Message, "提示", MessageBoxButtons.OK, MessageBoxIcon.Error)
End Try
End Sub
4 批處理文件(實現(xiàn)靜默安裝)
Game Developer Magazine 1994 - 2000年,共7年的游戲開發(fā)者雜志電子版(含源碼)
Graphics Programming Black Book (by Michael Abrash).zip,圖形編程黑書,Id software的Michael Abrash編著
Game Programming Gems I.rar ,游戲編程精粹I、II(含源碼)
Game Programming Gems II.rar
Graphics Gems I.rar ,圖形學(xué)精粹I、II、III、IV、V
Graphics Gems II.rar
Graphics Gems III IBM.rar
Graphics Gems IV IBM.rar
Graphics Gems V.rar
Computer Graphics, C Version (2nd Ed.).rar ,計算機圖形學(xué)C版(第二版)
half_life2_engine.zip ,半條命2游戲引擎源代碼
D3DTutorial10_Half-Life2_Shading.pdf ,半條命2游戲引擎光照分析
Course.PTR.3D.Game.Engine.Programming.eBook-LinG.rar ,3D游戲引擎編程
3D Game Engine Design.rar ,3D游戲引擎設(shè)計
3D Game Engine Design source code.rar ,3D游戲引擎設(shè)計源代碼
3D.Game.Programming.All.In.One.zip ,3D游戲編程大全
Game Design - Theory and Practice.rar ,游戲設(shè)計 - 理論與實踐
game.programming.all.in.one.zip ,游戲編程大全
The Cg Tutorial - The Definitive Guide to Programmable Real-Time Graphics.rar ,CG指導(dǎo) - 可編程實時圖形權(quán)威指南
Tricks Of The 3D Game Programming Gurus - Advanced 3D Graphics And Rasterization.rar ,3D游戲編程大師技巧 - 高級3D圖形和光柵化
Ultimate Game Design Building Game Worlds.rar ,終極游戲設(shè)計 - 創(chuàng)建游戲世界
Core.Techniques.And.Algorithms.In.Game.Programming.rar ,核心技術(shù)和算法在游戲編程
Simulating Humans.rar ,仿真人類
3D Lighting - History, Concepts, and Techniques.rar ,3D光照 - 歷史,概念和技術(shù)
Lighting.Techniques.For.Real-Time.3D.Rendering.rar ,光照技術(shù)For實時3D渲染
Vector.Game.Math.Processors.zip ,向量游戲數(shù)學(xué)處理器
AI for Computer Games and Animation - A Cognitive Modeling Approach.rar ,AI(人工智能)for計算機游戲和動畫 - 一個認知建模方案
AI.Game.Development.Synthetic.Creatures.With.Learning.And.Reactive.Behaviors.rar ,AI游戲開發(fā) - 合成生物With學(xué)習(xí)和反應(yīng)舉止
AI.Techniques.for.Game.Programming.rar ,AI技術(shù)for游戲編程(含源碼)
Ai.Game.Programming.Wisdom.rar ,AI游戲編程(代碼)
Real_Time_Rendering.rar ,實時渲染
special.effects.game.programming.rar ,特效(特殊效果)游戲編程(含源碼)
Shaders.for.Game.Programmers.and.Artists.zip ,著色器for游戲開發(fā)者和藝術(shù)家
Real-Time Shader Programming.rar ,實時著色器編程
Wordware.Publishing.Advanced.Lighting.and.Materials.With.Shaders.rar ,高級光照和材質(zhì)with著色器
OReilly - Physics for Game Developers.rar ,物理for游戲開發(fā)者
GPU Programming Guide.rar ,GPU編程指南
Collision.Detection.pdf.rar ,碰撞檢測
Collision.Detection.-.Algorithms.and.Applications.rar ,碰撞檢測 - 算法與應(yīng)用
focus.on.3D.terrain.zip ,游戲3D地形編程
Focus.On.3D.Models.zip ,游戲3D模型編程
Focus.On.2D.in.Direct3D.-.fly.pdf ,集中于Direct3D中的2D
Beginning.Game.Audio.Programming.rar ,開始游戲音頻編程(含源碼)
Internetworked.3D.Computer.Graphics.rar ,互連網(wǎng)間的3D計算機圖形學(xué)
Beginning.Math.and.Physics.For.Game.Programmers.zip ,開始數(shù)學(xué)和物理for游戲編程者(PDF版)
Beginning Math and Physics for Game Programmers[CHM].rar ,開始數(shù)學(xué)和物理for游戲編程者(CHM版)
3D.Math.Primer.for.graphics.and.game.development.zip ,3D數(shù)學(xué)初步for圖形和游戲開發(fā)
The art of computer game design.rar ,計算機游戲設(shè)計藝術(shù)
Sams.Beginning.3D.Game.Programming.eBook-LiB.rar ,3D游戲編程入門
MIT.Press.Rules.of.Play.Game.Design.Fundamentals.rar ,游戲設(shè)計基礎(chǔ)
design a pc game engine.rar ,設(shè)計一個PC游戲引擎
Advanced Graphics Programming Techniques Using Opengl.rar ,高級圖形編程技術(shù)用OpenGL
Real-time.Rendering.Tricks.and.Techniques.in.DirectX.rar ,DirectX實時渲染技巧與技術(shù)
Real-Time Rendering Tricks and Techniques in DirectX(src).ZIP ,DirectX實時渲染技巧與技術(shù)(源代碼)
Real Time 3D Terrain Engines Using C++ And Dx9.rar ,實時3D地形引擎用C++和Dx9
MS.Press.-.Microsoft.DirectX.9.Programmable.Graphics.Pipeline.rar ,Microsoft DirectX9可編程圖形管線
Wordware.Publishing.OpenGL.Game.Development.eBook-YYePG.rar ,OpenGL游戲開發(fā)
Beginning.OpenGL.Game.Programming.ebook.zip ,OpenGL游戲編程入門
OpenGL.Programming.Guide.rar ,OpenGL編程指南
Addison.Wesley.-.OpenGL.Programming.Guide.2nd.Edition.rar ,OpenGL編程指南(第二版)
Addison-Wesley,.OpenGL.Shading.Language.(2004).DDU.ShareConnector.rar ,OpenGL著色語言(2004)
Learn Vertex and Pixel Shader Programming With Directx 9.rar ,學(xué)習(xí)頂點和像素著色器編程用DirectX9
Shaderx2 - Shader Programming Tips Tricks With Directx 9.rar ,Shaderx2 - 著色器編程提示與技巧With DirectX9
ShaderX2 Introductions and Tutorials with DirectX9.rar ,ShaderX2介紹和指導(dǎo)With DirectX9
Direct3D.ShaderX.-.Vertex.and.Pixel.Shader.Tips.and.Tricks.rar ,Direct3D.ShaderX - 頂點和像素著色器提示和技巧
Advanced 3D Game Programming with DirectX 9.rar ,高級3D游戲編程用DirectX 9.0(含源碼,CHM版)
Advanced 3D Game Programming with DirectX 9[PDF].rar ,高級3D游戲編程用DirectX 9.0(PDF版)
DirectX 3D Graphics Programming Bible.rar ,DirectX 3D圖形編程寶典
Introduction to 3D Game Programming with DirectX 9.0.rar ,介紹對3D游戲編程用DirectX9.0(含部分源代碼)
Beginning.Direct3D.Game.Programming.rar ,Direct3D游戲編程入門
Beginning.DirectX9.zip ,DirectX9入門
Cutting Edge Direct 3D Programming.rar ,Cutting Edge(刀刃)Direct 3D編程
Game.Scripting.Mastery.zip ,游戲描述語言掌握
Data.Structures.for.Game.Programmers.rar ,數(shù)據(jù)結(jié)構(gòu)for游戲編程者(含源碼)
2_OpenGL.Extensions.-.Nvidia.rar ,OpenGL擴展(Nvidia)
Managed.DX.9.Kick.Start.Graphics.And.Game.Programming.rar ,DirectX9圖形和游戲編程
OpenGL.Reference.Manual.rar ,OpenGL參考手冊
OpenGL.Super.Bible.rar ,OpenGL超級寶典
Tricks of the Windows Game Programming Gurus.rar ,Windows游戲編程大師技巧
Tricks of Win Game Programming Gurus 2ed.rar ,Windows游戲編程大師技巧(第二版)
Game.Programming.Beginners.Guide.rar ,游戲編程初學(xué)者指南
Chris_Crawford_on_Game_Design.rar ,Chris Crawford寫的游戲設(shè)計書
Advanced.Animation.with.DirectX.rar ,高級動畫with DirectX(含源碼)
Inside Direct3D.rar ,深入Direct3D
Direct3D_9_Basics.rar ,Direct3D 9基礎(chǔ)
Sams Teach Yourself DirectX 7 in 24 Hours.rar ,教你自己DirectX7在24小時
Programming.Role.Playing.Games.with.DirectX.rar ,用DirectX編程RPG游戲(含源碼)
Programming Multiplayer Games.rar ,編程多玩家游戲
Net Game Programming With Directx 9.0.rar ,網(wǎng)絡(luò)游戲編程with Directx 9.0
Programming Linux Games.rar ,編程Linux游戲
Developing Online Games - An Insiders Guide.rar ,開發(fā)在線游戲 - 一個權(quán)威人士的指導(dǎo)
Game Coding Complete.rar ,游戲編碼完全
Strategy Game Programming with DirectX 9.0.rar ,策略游戲編程用DirectX9.0
Strategy Game Programming with DirectX 9.0 Source Code.zip ,策略游戲編程用DirectX9.0(源代碼)
Addison-Wesley - Software Engineering and Computer Games.rar ,軟件工程和計算機游戲
Artificial Intelligence and Software Engineering.rar ,AI和軟件工程
Game-Programming-OpenGL-C++.rar ,有關(guān)OpenGl和C++的一些資料
GBA Programming Game Boy Advance The Unofficial Guide.rar ,GBA編程非官方指南
Palm.OS.Game.Programming.zip ,Palm掌上操作系統(tǒng)游戲編程
Mac.Game.Programming.pdf ,蘋果機游戲編程
Premier.Press.J2ME.Game.Programming.rar ,J2ME游戲編程
J2ME Game Development with MIDP2.rar ,J2ME游戲開發(fā)with MIDP2
PHP.Game.Programming.zip ,PHP語言游戲編程
Game.Programming.with.Python.Lua.And.Ruby.zip ,游戲編程用Python,Lua和Ruby語言
Apress.dot.NET.Game.Programming.with.DirectX.9.0.eBook-KB.rar ,點NET游戲編程用DirectX9
Wordware.Wireless.Game.Development.In.C.Cpp.With.BREW.chm ,無線游戲開發(fā)用C、C++ With BREW
DirectX9 User Interfaces Design and Implementation.rar ,DirectX9用戶接口設(shè)計和實現(xiàn)
Game.Interface.Design.rar ,游戲接口設(shè)計
SAMS Teach Yourself Game Programming in 24 Hours.rar ,教你自己游戲編程在24小時
C.Game.Programming.For.Dummies.2.rar ,C游戲編程傻瓜書2
Beginners Guide to DarkBASIC Game Programming.rar ,初學(xué)者指南對DarkBASIC游戲編程
Windows Graphics Programming Win32 GDI and DirectDraw.rar ,Windows圖形編程 - Win32 GDI 和 DirectDraw
Game Programming Genesis.rar ,游戲編程起步
2D.Artwork.and.3D.Modeling.for.Game.Artists.zip ,2D藝術(shù)品和3D建模for游戲藝術(shù)家
Game.Art.for.Teens.pdf ,游戲藝術(shù)for青年人
Game Development and Production.rar ,游戲開發(fā)和產(chǎn)品
Game.Developers.Market.Guide.rar ,游戲開發(fā)者市場指南
MIT.Press.A.History.Of.Modern.Computing.eBook-LiB.rar ,現(xiàn)代計算歷史
The C++ Programming Language NO.3 Edition.rar ,C++編程語言(第三版)
Computer Systems A Programmers Perspective.rar ,計算機系統(tǒng) - 一個編程者的透視
Intel Architecture Software Developer Manual.zip ,Intel架構(gòu)軟件開發(fā)者手冊
Intel Itanium Assembly Language Reference.rar ,Intel Itanium架構(gòu)匯編語言參考
Agile Software Development.rar ,靈活的軟件開發(fā)
Code Reading The Open Source Perspective.rar ,代碼閱讀與開放源透視
ps2DevEnvironment.exe ,PS2開發(fā)環(huán)境
doxygen-1.3.9.1-setup.exe ,一種文檔自動生成軟件
wolf_source.exe ,wolf游戲(id software)源代碼
doom_src.zip ,doom游戲(id software)源代碼
q2src320.exe ,Quake2游戲(id software)源代碼
Q3A_TA_GameSource_127.exe ,QuakeIII(id software)游戲源代碼
Q3A_ToolSource.exe ,QuakeIII(id software)工具源代碼