How to print a PDF file Using VB
来源:互联网 发布:指南针软件使用教程 编辑:程序博客网 时间:2024/06/05 16:15
Instructions
- 1
Create a new project in Visual Basic by clicking on "File" and "New project." Select "Console Application." Alternatively, you can just add the code from the rest of the tutorial anywhere you like within an existing project.
- 2
Paste the following code within Visual Basic to call the PDF print script:
dim filename = "C:\pdfFileToPrint.PDF"
Process.Start("printPDF.vbs " & filename)
Sponsored Links
- print cgm/emf/tiff/pdf
Sofware for GeoScience Professional EasyCopy/EasyPlot free trial
www.gdesigns.co.uk
- print cgm/emf/tiff/pdf
- 3
Click on "Project" and "Add new item." Select "Text File" and name it "printPDF.vbs."
- 4
Paste the following code within it:
Set fso = CreateObject("Scripting.FileSystemObject")
fullPath = fso.GetAbsolutePathName(WScript.Arguments(0))
WScript.CreateObject ("Shell.Application").Namespace(0).ParseName( fullPath ).InvokeVerb "&Print"
- 5
Save your work.
- 1
- How to print a PDF file Using VB
- How to Print a PDF File Using Cocoa
- How to create a PDF file, cheaply?
- how-to-print-a-long-integer-using-only-putchar
- How to convert a latex to pdf file
- How to Remove PDF/A Information from a file
- How to pad a file with “FF” using dd?
- How to Open a Text File in VB .NET
- pdf file to txt file using pdfbox
- Write a method to print the last K lines of an input file using C++
- How to copy a datafile from ASM to a file system not using RMAN
- how to print log for a developer
- How To Load CLOB Data from a File into a CLOB column using PL/SQL
- How to transform a pdf file from database@server side to client ?
- How to open a file
- How To Print Concurrent Requests in PDF Format
- How to read ini file using Java
- ABAP PRINT PDF FILE
- 创建存储过程的要点
- 制作Fastbook:一段HTML5爱情故事
- Activity生命周期
- 深入理解Android gtest 测试框架
- 学习笔记之vi之分页功能
- How to print a PDF file Using VB
- A星(A*, A Star)算法详解
- 舆情分析--ROST虚拟学习团队
- Android中的线性布局(LinearLayout)
- u大师U盘装系统——运行Windows登录密码
- 求某天之后的三个工作日
- Svn命令
- svn diff 和patch的使用
- Linux system函数返回值