472,371 Members | 1,580 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,371 software developers and data experts.

Have C# PrintDocument and VC++6 DLL printing on the same print job

Ann
I have a C# application that uses PrintDocument and PrintPage to draw
reports. Now I need to integrate a tax form printing from a legacy VC++
DLL into the C# application. One of the important requirements is that
the printing of the reports (implemented by C#) and the tax form
(implemented by VC++) to be on the same print job. For example, if
there are 10 clients we need to print the reports and tax form for,
then 10 print jobs will be sent out to printer. Each print job will
print both reports and tax form.

The printing from the VC++ DLL was handled via PCL. I have a C# wrapper
that wraps this VC++ DLL.

How should I implement this in C#? If I just put the

this.PrintDocument.Print(); //handle the reports printing
taxform.Print(); //handles the tax form printing.

They send out 2 print jobs to the printer.
Thanks in advance for your help.

Nov 16 '05 #1
0 1716

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Bobby C. Jones | last post by:
Ok, so I had a couple of minutes after lunch to play around a bit with the System.Drawing.Printing namespace. I just wanted to print out a single line of text. I had to work very hard to resist...
3
by: Hasani | last post by:
How do I stop or hide the 'Printing' dialog box from showing when the method PrintDocument.Print is invoked?
3
by: Randy | last post by:
Hello, I'm trying to print a dataGrid using PrintDocument control. My datagrid has about 23 columns so it is fairly wide. When I use the PrintControl, it prints only the part of the dataGrid that...
3
by: enahar | last post by:
How to print the list view control columns using PrintDocument class in csharp dotnet framework Thanks Regards, Ekta
3
by: Igor | last post by:
Hi, I have a problem when I attempt to utilize the PrintDocument component. I basically copy word for word the code provided under the PrintDocument overview help, but I keep getting the same...
0
by: toufik | last post by:
I'm using a printDocument object to print a text. How can I set the paper size fomat to LETTER format here is the code that I started, I don't know if its the good direction....
2
by: ReidarT | last post by:
I use this code to print a textfile, but it gives me a lot of blank pages. The file contains 9 lines of text. Private strFileName As String = "C:\Sendepost\LoggFil.txt" Private objStreamToPrint...
1
by: Dave Cullen | last post by:
How do I force a new page when printing with PrintDocument? I put a vbFormFeed in there after my footer and it gets ignored. Thanks Dave
16
by: raylopez99 | last post by:
I am running out of printing paper trying to debug this...it has to be trivial, but I cannot figure it out--can you? Why am I not printing text, but just the initial string "howdy"? On the...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
0
by: jack2019x | last post by:
hello, Is there code or static lib for hook swapchain present? I wanna hook dxgi swapchain present for dx11 and dx9.
0
DizelArs
by: DizelArs | last post by:
Hi all) Faced with a problem, element.click() event doesn't work in Safari browser. Tried various tricks like emulating touch event through a function: let clickEvent = new Event('click', {...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.