Tag: pdf的一代

Excel – 使用公式插入pdf图片

如果某些单元格与分配的PDF信息匹配,我希望excel能够调用某个PDF文档并将其插入到工作表中。 我试过使用对象插入,但它只给了我一个不可编辑的公式,这当然是: =EMBED(" Forms.CommandButton.1") 哪个不行 然后,我试图嵌套IF & AND语句,但这并没有让我走得太远,看到我不知道如何,或者是否可以在该公式中添加PDF文档。 我试过使用超链接,但似乎设置了超链接,不能使用IF或AND语句。 任何build议或解决scheme,欢迎。 谢谢!

使用VBA将PDF表复制到Excel中

我是VBA的新手,我有一个任务,那就是使用VBA编写代码将表格从PDF复制到Excel需要完成。 我在Google上search过这个任务,我能得到的答案是必须是Acrobat Professional。 但是,我正在使用Acrobat Reader。 这里是我提出的概念stream程。 声明variables 初始化variables 打开PDF search“关键字” 复制“关键字”下的所有内容 激活Excel并转到单元格 粘贴表格 不过,我在search“关键字”和复制表格方面遇到了一些障碍。 请帮忙。 提前致谢!

Excel – VBA – ExportAsFixedFormat PDF文件太大

使用macros将工作表的副本保存为PDF到我的桌面。 但是,使用我的macros时,实际的文件大小会导致文件大小增加两到三倍,而如果我手动使用Excel,请转到Acrobat选项卡并创buildPDF。 我需要进一步缩小pdf的文件大小。 我已经设置了一个小的打印区域,尝试使用最低的质量,减less图像大小之前,手等。有更好的select打印一个较小的文件大小的工作表的PDF格式? 文件之间的差异是100kb,而280kb。 ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Quality:=xlQualityMinimum, IgnorePrintAreas:=False, Filename:="C:\

强制模板保存为xlsm,但之后允许保存为pdf

我已经创build了一个xltm文档供我的工作场所使用。 大多数用户将xls设置为默认保存选项,因此当用户在configuration完成后保存该文档时,必须强制将其保存为xlsm,否则将失去function。 为了覆盖这个,我已经使用了下面的代码(从其他地方借用和修改别人的问题): Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean) Dim vFilename As Variant 'Disable events so "new save" doesn't re-trigger this event Application.EnableEvents = False If SaveAsUI = True Then ' User selected SaveAs instead of Save Cancel = True ' Cancel the user's original save action 'Application.DisplayAlerts = False 'Simulate built […]

如何在Excel中使用VBA将Powerpoint作为PDF使用加载项PDFMaker保存?

我使用Excel中的VBA从Excel中更新Powerpoint演示文稿和图表等。 我想要做的是使用Powerpoint中的PDFMaker插件从VBA代码中将该演示文稿另存为PDF。 我想使用加载项的原因是,PDF的质量比普通的“另存为PDF”更好。 我在Windows 7上使用Office 2010和Adobe Acrobat XI Standard。 我的代码工作正常,直到我到达调用CreatePDFEx方法的阶段。 然后我得到错误: “”“运行时错误”-2147023170“ 自动化错误远程过程调用失败。 “”” 这是我使用的代码的一部分,在代码前面指定了“pdfname”: Dim pmkr As AdobePDFMakerForOffice.PDFMaker Dim stng As AdobePDFMakerForOffice.ISettings Dim pdfname As String Dim a As Object Set pmkr = Nothing ' locate PDFMaker object For Each a In pptApp.COMAddIns If InStr(UCase(a.Description), "PDFMAKER") > 0 Then Set pmkr = a.Object Exit […]

在运行Powershell脚本时,通过Java将PPT,XLS转换为PPT,从而无法find文件和内存

我很累,通过Java应用程序运行PowerShell脚本。 我累了两次手术 1)将ppt转换为pdf。 2)将xls转换为pdf。 我正在使用的configuration是, Windows 2008上的MS Office 2013 将PPT转换为PDF的脚本如下所示 #Convert Powerpoint formats to pdf Param( [string]$inputPath, [string]$outputPath ) Add-type -AssemblyName Office Add-type -AssemblyName Microsoft.Office.Interop.PowerPoint $ppFormatPDF = 32 $ppQualityStandard = 0 $pp = new-object -comobject powerpoint.application $ppt =$pp.presentations.open($inputPath) $ppt.SavecopyAs($outputPath, $ppFormatPDF) # 32 is for PDF $ppt.close() $pp.Quit() $pp = $null [gc]::collect() [gc]::WaitForPendingFinalizers() 在运行这个脚本时,我得到的内存超出了界限的exception Executing command: […]

Excel VBA“Microsoft Windows公共控件6.0(SP6)”位置更改

我有一个Excel工作簿,用于为客户生成报价。 用户input数据的主页有一个button,可以生成各种PDF并发送给客户。 但是,一个用户一直在收到一个错误,使得她无法生成和发送PDF文件。 我相信它是与“Microsoft Windows公共控件6.0(SP6)”。 它安装在所有用户的计算机上。 在我的位置是“C:\ WINDOWS \ SysWOW64 \ MSCOMCTL.OCX”,但在其他人是“C:\ Windows \ System32 \ mscomctl.ocx” 遇到问题的用户是在32位计算机上,因此“mscomctl.ocx”文件应在System32中。 我已经手动把它放在那里,并指向VBA中的公共控制引用。 问题是它似乎继续恢复在SysWOW64中寻找它。 由于该文件夹不存在,因此无法find它,因此无法生成PDF文件。 我认为,也许问题是,用户运行的Office(2007年),因为有2013年和2016年的用户的旧版本。我也认为,也许这是混合的64位和32位用户。 用户通过其他用户发送工作簿(随着引用过程进一步传递给相关用户)。但是,还有另外一个用户也在32位和Office 2007上,并且没有任何问题。

Excel VBScript在打印到另一个PDF之前closures打开的和之前打印的PDF

我正在用一块代码将工作表打印到一个PDF文件中。 打开这个PDF文件,如果我尝试从这个相同的Excel文件再次打印到PDF,我得到一个VB错误:“文档没有保存”和debugging带我在这里的代码: ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, filename:= _ strFilename & " " & wedate_text & " Time", Quality:=xlQualityStandard, _ IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:= _ True 这是代码: Sub PrintAnadarkoTicketsToPDF() Worksheets("Cover").Visible = False Application.Calculation = xlCalculationManual Application.ScreenUpdating = False Application.DisplayStatusBar = False Application.EnableEvents = False Dim strFilename As String Dim rngRange As Range Dim wedate As Date Dim wedate_text As […]

我怎样才能从一个MySQL数据库创build一个PHP数据数组作为PHPReport Maker中的input

我正在尝试使用PHPReport创build一个可导出到Excel和PDF的PHP 报表 。 我已经testing了报告插件,并且已经能够创build一个合适的模板来适合我想要的报告。 然而,我很难搞清楚如何使用mysql查询中的结果集作为input参数来生成报告。 报告插件只给出了一个使用数组数组的input数据的例子,如下所示。 $products=array( array('transdate'=>'Example product','ref'=>2,'debit'=>4.5,'credit'=>9, 'bal'=>2, 'narrative'=>'Yes'), array('transdate'=>'Example product','ref'=>2,'debit'=>4.5,'credit'=>9, 'bal'=>2, 'narrative'=>'Yes'), array('transdate'=>'Example product','ref'=>2,'debit'=>4.5,'credit'=>9, 'bal'=>2, 'narrative'=>'Yes'), array('transdate'=>'Example product','ref'=>2,'debit'=>4.5,'credit'=>9, 'bal'=>1122, 'narrative'=>'Yes'), array('transdate'=>'Example product','ref'=>2,'debit'=>4.5,'credit'=>9, 'bal'=>6, 'narrative'=>'Yes'), array('transdate'=>'Example product','ref'=>2,'debit'=>4.5,'credit'=>9, 'bal'=>5, 'narrative'=>'Yes') ); 如何使用Mysql查询中的结果集作为input数据? 以下是报告生成脚本的示例 <?php include '../PHPReport.php'; //which template to use if(isset($_GET['template'])) $template=$_GET['template']; else $template='invoice.xls'; //set absolute path to directory with template files $templateDir='C:\wamp\www\ph\PHPReport\examples\template\\'; //we […]

.xlsm到.pdfmacros损坏.pdf

我已经修改了下面的macros,我发现从文件夹A中的文件,并将它们放在文件夹B与.pdf作为文件扩展名: Sub Xlsm_to_Pdf() Dim Xlsmfolder As String Dim PdfFolder As String Dim fname As String Dim wBook As Workbook Application.DisplayAlerts = False Xlsmfolder = "\\Desktop\Macro Testing\TestFolderA\" PdfFolder = "\\Desktop\Macro Testing\TestFolderB\" fname = Dir(Xlsmfolder & "*.xlsm") Do While fname <> "" Set wBook = Workbooks.Open(Xlsmfolder & fname, Format:=6, Delimiter:=",") wBook.SaveAs PdfFolder & Replace(fname, ".xlsm", ".pdf"), ThisWorkbook.FileFormat […]