简体   繁体   English

使用Crystal Report打印发票

[英]Using Crystal Report to print an Invoice

Is it possible to retrieve data from multiple tables in a LINQ-to-sql database to form an invoice using a crystal report 是否可以从LINQ-to-sql数据库的多个表中检索数据以使用水晶报表形成发票

Note that i am using C# visual studio 2010 and LINQ to sql Database. 请注意,我正在使用C#visual studio 2010和LINQ to sql数据库。

Crystal Reports can work with either a data object (such as a dataset or datatable) or an actual database, else well as with XML, so yes it can. Crystal Reports可以使用数据对象(例如数据集或数据表)或实际数据库,也可以使用XML,因此可以。

Note there's no such thing as a LINQ-to-sql database, LINQ provides a middle man between you and the database. 注意,没有LINQ-to-sql数据库之类的东西,LINQ在您和数据库之间提供了中间人。 You probably mean you use LINQ to talk to your database and want to pass the results on to Crystal. 您可能是说,您使用LINQ与您的数据库进行对话,并希望将结果传递给Crystal。

You can do this by converting the results to either a list or a dataset. 您可以通过将结果转换为列表或数据集来执行此操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM