如何将通过Quickbooks SDK生成的发票导出为PDF [英] How to Export Invoices Generated Through Quickbooks SDK to PDF

查看:264
本文介绍了如何将通过Quickbooks SDK生成的发票导出为PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在一种情况下,我们需要使用Quickbooks SDK从外部应用程序创建发票,然后将该发票的PDF副本返回给调用应用程序.

We have a scenario where we need to use the Quickbooks SDK to create invoices from an external application and then return a PDF copy of that invoice to the calling application.

使用Quickbooks SDK创建发票非常容易,因此第一步没有问题.

Creating an invoice is very easy to do with the Quickbooks SDK, so there is no problem with this first step.

但是,我不确定如何通过外部调用应用程序实际打印或退回发票(PDF格式).

However, I am unsure how to actually print or return the invoice (as a PDF) through the external calling application.

以下是我与该目标有关的几个问题.

Here are a few questions I have relating to this objective.

  1. Quickbooks SDK是否提供直接请求并返回文档(例如发票)的视觉表示(例如PDF)的功能?
  2. Quickbooks SDK是否提供直接打印文档(例如发票)的功能?

大多数这些问题是由于我对Quickbooks SDK普遍缺乏了解.

Most of these questions come from my general lack of familiarity with the Quickbooks SDK.

假设上面的数字不可能为1,则实现我们目标的一些可能的替代策略如下.

Assuming that number 1 above is not possible, some possible alternate strategies for accomplishing our objective are as follows.

策略A-使用预定文件名打印并导出为

Strategy A - Print and Export to PDF Using Predetermined Filename

如果支持,我们将要求Quickbooks用我们选择的名称将发票打印为PDF.使用Filewatcher,我们将监视目录并以编程方式检索打印的发票.

If supported, we would request Quickbooks to print an invoice to a PDF with a name of our choosing. Using a Filewatcher, we would monitor the directory and retrieve the printed invoice programmatically.

策略B-在Quickbooks之外创建自己的发票报告

Strategy B - Create Own Invoice Report Outside of Quickbooks

我们知道我们可以通过Quickbooks SDK接收发票的所有数据.我们可以生成自己的发票报告,并将其完全打印在Quickbooks之外.这是很多工作,如果可能的话,我们宁愿避免这种情况.

We know that we can receive all the data for the invoice back via the Quickbooks SDK. We could generate our own invoice report and print it completely outside of Quickbooks. This is a lot of work and we would prefer to avoid this if possible.

我非常欢迎您对这些策略发表任何评论.更好的是,一个可行的解决方案将是很好的.

I very much welcome any comments on these strategies. Better yet, a workable solution would be great.

仅供参考,我们的技术堆栈使用C#/ASP.NET,QBFC,Web连接器和Quickbooks 2010.

FYI, Our technology Stack uses C#/ASP.NET, QBFC, Web Connector, and Quickbooks 2010.

提前谢谢!

推荐答案

您的问题的答案是...:

The answers to your questions are...:

Quickbooks SDK是否提供直接请求和提供功能? 返回文档(例如 发票)?

Does the Quickbooks SDK provide the capability to directly request and return a visual representation (e.g. a PDF) of a document (e.g. an invoice)?

不,不是.

Quickbooks SDK是否提供直接打印文档(例如发票)的功能?

Does the Quickbooks SDK provide the capability to directly print a document (e.g. an invoice)?

不,不是.

您的策略B是正确的策略.通过SDK提取发票数据,然后使用它来创建自己的发票.

Your Strategy B is the correct strategy. Grab the invoice data via the SDK, and use that to create your own invoices.

这篇关于如何将通过Quickbooks SDK生成的发票导出为PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆