473,383 Members | 1,855 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Printing a PDF in c# using a stream ... can it be done ?

Greetings community at large.

I have a c# app that generates a PDF file.
I have a printer that prints PDF natively.

But I cannot figure out how to programatically print in C# ... I can
generate the PDF as a file or a stream .. but cannot figure out how to send
either to the printer.

the only events I can use seem to be e.Graphics.DrawImage( ) or
e.Graphics.DrawString( )

is there a way to print a stream to a printer ? or a streamReader or
binaryStream ?

I thought that as a PDF is 'kind-of' a postscript file I could use
e.Graphics.DrawString( ) .. not surprisingly I got several pages of text ...

I can just drag and drop my PDF onto the printer it hops in the queue and
prints wonderfully ( no need to use acrobat reader to print) ..

Is perhaps this the way to go to 'programatically' push the file onto the
print queue ?

Regards.
Jan 22 '07 #1
8 41695
Hi,

Google search turns up many results.

One way
http://groups.google.com/group/micro...89cae8878ce652

Another way (similar, but more OO)
http://groups.google.com/group/micro...9334b9c4e9a58f

Printing in a server application such as ASP.NET
http://groups.google.com/group/micro...9a5d2f6d1a4add

Note: I have no idea if any of these actually work :)

--
Dave Sexton
http://davesexton.com/blog

"Microsoft News" <no*******@nospamSam.com.auwrote in message
news:ur**************@TK2MSFTNGP03.phx.gbl...
Greetings community at large.

I have a c# app that generates a PDF file.
I have a printer that prints PDF natively.

But I cannot figure out how to programatically print in C# ... I can
generate the PDF as a file or a stream .. but cannot figure out how to
send either to the printer.

the only events I can use seem to be e.Graphics.DrawImage( ) or
e.Graphics.DrawString( )

is there a way to print a stream to a printer ? or a streamReader or
binaryStream ?

I thought that as a PDF is 'kind-of' a postscript file I could use
e.Graphics.DrawString( ) .. not surprisingly I got several pages of text
...

I can just drag and drop my PDF onto the printer it hops in the queue and
prints wonderfully ( no need to use acrobat reader to print) ..

Is perhaps this the way to go to 'programatically' push the file onto the
print queue ?

Regards.


Jan 23 '07 #2
JE
If you are looking to send a bitstream directly to a printer, use the
following code to open the port and print directly. The port can be
LPT1, COM1, etc or \\host\printershare.

using System;
using System.IO;
using System.Runtime.InteropServices;

[DllImport("Kernel32.dll")]
static extern IntPtr CreateFile(string filename,
[MarshalAs(UnmanagedType.U4)]FileAccess fileaccess,
[MarshalAs(UnmanagedType.U4)]FileShare fileshare, int
securityattributes, [MarshalAs(UnmanagedType.U4)]FileMode
creationdisposition, int flags, IntPtr template);

public static void PrintDirect(string port, byte[] doc){
FileStream fs = new FileStream(CreateFile(port, FileAccess.ReadWrite,
FileShare.ReadWrite, 0, FileMode.Create, 0, IntPtr.Zero),
FileAccess.ReadWrite);
fs.Write(doc,0,doc.Length);
fs.Close();
}
Microsoft News wrote:
Greetings community at large.

I have a c# app that generates a PDF file.
I have a printer that prints PDF natively.

But I cannot figure out how to programatically print in C# ... I can
generate the PDF as a file or a stream .. but cannot figure out how to send
either to the printer.

the only events I can use seem to be e.Graphics.DrawImage( ) or
e.Graphics.DrawString( )

is there a way to print a stream to a printer ? or a streamReader or
binaryStream ?

I thought that as a PDF is 'kind-of' a postscript file I could use
e.Graphics.DrawString( ) .. not surprisingly I got several pages of text ...

I can just drag and drop my PDF onto the printer it hops in the queue and
prints wonderfully ( no need to use acrobat reader to print) ..

Is perhaps this the way to go to 'programatically' push the file onto the
print queue ?

Regards.

Jan 23 '07 #3
Bob
Thanks JE ... this looked quite hopeful .. when I pasted it in it compiles
and runs but doesnt seem to drive any printer.
I traced though it up to the fs.write( ) and doc is populated ..
what have I missed ????? at worst I hoped to get garbage out of the printer.

Below is my implimentation :

using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Runtime.InteropServices;

namespace printing_directly_to_printer
{
class Program
{
[DllImport("Kernel32.dll")]
static extern IntPtr CreateFile(string filename,
[MarshalAs(UnmanagedType.U4)]FileAccess fileaccess,
[MarshalAs(UnmanagedType.U4)]FileShare fileshare, int
securityattributes, [MarshalAs(UnmanagedType.U4)]FileMode
creationdisposition, int flags, IntPtr template);

public static void PrintDirect(string port, byte[] doc)
{
FileStream fs = new FileStream(CreateFile(port,
FileAccess.ReadWrite,
FileShare.ReadWrite, 0, FileMode.Create, 0, IntPtr.Zero),
FileAccess.ReadWrite);
fs.Write(doc, 0, doc.Length);
fs.Close();
}

static void Main(string[] args)
{
string printerPort_Lexmark = "IP_10.254.1.90"; // ports
mapped on the local machine to the various printers
string printerPort_HPColor = "IP_10.254.1.11"; // the
lexmark will print PDF's natively, dont expect the HP
string printerPort_PDFCreator = "PDFCreator"; // to play
nicely .. but there for testing

FileStream myFS = new FileStream("c:\\document.pdf",
FileMode.Open, FileAccess.Read); // read in the PDF
BinaryReader myBR = new BinaryReader(myFS);

byte[] outData = new byte[myBR.BaseStream.Length];

for (int x = 0; x == myBR.BaseStream.Length; x++)
outData[x] = myBR.ReadByte();

PrintDirect(printerPort_Lexmark, outData);
}
}
}

regards Bob

"JE" <jg*******@gmail.comwrote in message
news:Op*************@TK2MSFTNGP05.phx.gbl...
If you are looking to send a bitstream directly to a printer, use the
following code to open the port and print directly. The port can be LPT1,
COM1, etc or \\host\printershare.

using System;
using System.IO;
using System.Runtime.InteropServices;

[DllImport("Kernel32.dll")]
static extern IntPtr CreateFile(string filename,
[MarshalAs(UnmanagedType.U4)]FileAccess fileaccess,
[MarshalAs(UnmanagedType.U4)]FileShare fileshare, int securityattributes,
[MarshalAs(UnmanagedType.U4)]FileMode creationdisposition, int flags,
IntPtr template);

public static void PrintDirect(string port, byte[] doc){
FileStream fs = new FileStream(CreateFile(port, FileAccess.ReadWrite,
FileShare.ReadWrite, 0, FileMode.Create, 0, IntPtr.Zero),
FileAccess.ReadWrite);
fs.Write(doc,0,doc.Length);
fs.Close();
}


Jan 24 '07 #4
Bob
Thanks Dave,

Yep I've seen these methods before ... they seem to require something to be
able to format the PDF and print it ... usually acrobat reader ... I'm
hoping that because I havea printer that can print PDF's natively I can
avoid this step and the various dark arts associated.

Acrpbat reader version 4 and below you could use and then be able to close
it afterwards but with the later version there is no easy way to shut down
acrobat reader once it has done its job.

cheers Bob
"Dave Sexton" <dave@jwa[remove.this]online.comwrote in message
news:OU**************@TK2MSFTNGP06.phx.gbl...
Hi,

Google search turns up many results.

One way
http://groups.google.com/group/micro...89cae8878ce652

Another way (similar, but more OO)
http://groups.google.com/group/micro...9334b9c4e9a58f

Printing in a server application such as ASP.NET
http://groups.google.com/group/micro...9a5d2f6d1a4add

Note: I have no idea if any of these actually work :)

--
Dave Sexton
http://davesexton.com/blog

"Microsoft News" <no*******@nospamSam.com.auwrote in message
news:ur**************@TK2MSFTNGP03.phx.gbl...
>Greetings community at large.

I have a c# app that generates a PDF file.
I have a printer that prints PDF natively.

But I cannot figure out how to programatically print in C# ... I can
generate the PDF as a file or a stream .. but cannot figure out how to
send either to the printer.

the only events I can use seem to be e.Graphics.DrawImage( ) or
e.Graphics.DrawString( )

is there a way to print a stream to a printer ? or a streamReader or
binaryStream ?

I thought that as a PDF is 'kind-of' a postscript file I could use
e.Graphics.DrawString( ) .. not surprisingly I got several pages of text
...

I can just drag and drop my PDF onto the printer it hops in the queue and
prints wonderfully ( no need to use acrobat reader to print) ..

Is perhaps this the way to go to 'programatically' push the file onto the
print queue ?

Regards.



Jan 24 '07 #5
Hi,

I haven't tried using the Win32 APIs to do this myself, but here's a
reference that might help:

Printing and Print Spooler Functions
http://msdn2.microsoft.com/en-us/library/ms535737.aspx

I'm going to need this eventually too - if you figure something out that's
pretty simple, please post your findings. Thanks!

--
Dave Sexton
http://davesexton.com/blog
http://www.codeplex.com/DocProject (Sandcastle in VS IDE)

"Bob" <no*******@nospamSam.com.auwrote in message
news:eU**************@TK2MSFTNGP06.phx.gbl...
Thanks JE ... this looked quite hopeful .. when I pasted it in it compiles
and runs but doesnt seem to drive any printer.
I traced though it up to the fs.write( ) and doc is populated ..
what have I missed ????? at worst I hoped to get garbage out of the
printer.

Below is my implimentation :

using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Runtime.InteropServices;

namespace printing_directly_to_printer
{
class Program
{
[DllImport("Kernel32.dll")]
static extern IntPtr CreateFile(string filename,
[MarshalAs(UnmanagedType.U4)]FileAccess fileaccess,
[MarshalAs(UnmanagedType.U4)]FileShare fileshare, int
securityattributes, [MarshalAs(UnmanagedType.U4)]FileMode
creationdisposition, int flags, IntPtr template);

public static void PrintDirect(string port, byte[] doc)
{
FileStream fs = new FileStream(CreateFile(port,
FileAccess.ReadWrite,
FileShare.ReadWrite, 0, FileMode.Create, 0, IntPtr.Zero),
FileAccess.ReadWrite);
fs.Write(doc, 0, doc.Length);
fs.Close();
}

static void Main(string[] args)
{
string printerPort_Lexmark = "IP_10.254.1.90"; // ports
mapped on the local machine to the various printers
string printerPort_HPColor = "IP_10.254.1.11"; // the
lexmark will print PDF's natively, dont expect the HP
string printerPort_PDFCreator = "PDFCreator"; // to play
nicely .. but there for testing

FileStream myFS = new FileStream("c:\\document.pdf",
FileMode.Open, FileAccess.Read); // read in the PDF
BinaryReader myBR = new BinaryReader(myFS);

byte[] outData = new byte[myBR.BaseStream.Length];

for (int x = 0; x == myBR.BaseStream.Length; x++)
outData[x] = myBR.ReadByte();

PrintDirect(printerPort_Lexmark, outData);
}
}
}

regards Bob

"JE" <jg*******@gmail.comwrote in message
news:Op*************@TK2MSFTNGP05.phx.gbl...
>If you are looking to send a bitstream directly to a printer, use the
following code to open the port and print directly. The port can be LPT1,
COM1, etc or \\host\printershare.

using System;
using System.IO;
using System.Runtime.InteropServices;

[DllImport("Kernel32.dll")]
static extern IntPtr CreateFile(string filename,
[MarshalAs(UnmanagedType.U4)]FileAccess fileaccess,
[MarshalAs(UnmanagedType.U4)]FileShare fileshare, int securityattributes,
[MarshalAs(UnmanagedType.U4)]FileMode creationdisposition, int flags,
IntPtr template);

public static void PrintDirect(string port, byte[] doc){
FileStream fs = new FileStream(CreateFile(port, FileAccess.ReadWrite,
FileShare.ReadWrite, 0, FileMode.Create, 0, IntPtr.Zero),
FileAccess.ReadWrite);
fs.Write(doc,0,doc.Length);
fs.Close();
}



Jan 24 '07 #6
Bob
Hi Dave,

well the solution to my problem was here
http://support.microsoft.com/default.aspx/kb/322091 Your posts plus EJ's
pointed me in the right direction.

This solution works for my printer as it can print PDF's ..

cheers Bob

"Dave Sexton" <dave@jwa[remove.this]online.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
Hi,

I haven't tried using the Win32 APIs to do this myself, but here's a
reference that might help:

Printing and Print Spooler Functions
http://msdn2.microsoft.com/en-us/library/ms535737.aspx

I'm going to need this eventually too - if you figure something out that's
pretty simple, please post your findings. Thanks!

--
Dave Sexton
http://davesexton.com/blog
http://www.codeplex.com/DocProject (Sandcastle in VS IDE)

"Bob" <no*******@nospamSam.com.auwrote in message
news:eU**************@TK2MSFTNGP06.phx.gbl...
>Thanks JE ... this looked quite hopeful .. when I pasted it in it
compiles and runs but doesnt seem to drive any printer.
I traced though it up to the fs.write( ) and doc is populated ..
what have I missed ????? at worst I hoped to get garbage out of the
printer.

Below is my implimentation :

using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Runtime.InteropServices;

namespace printing_directly_to_printer
{
class Program
{
[DllImport("Kernel32.dll")]
static extern IntPtr CreateFile(string filename,
[MarshalAs(UnmanagedType.U4)]FileAccess fileaccess,
[MarshalAs(UnmanagedType.U4)]FileShare fileshare, int
securityattributes, [MarshalAs(UnmanagedType.U4)]FileMode
creationdisposition, int flags, IntPtr template);

public static void PrintDirect(string port, byte[] doc)
{
FileStream fs = new FileStream(CreateFile(port,
FileAccess.ReadWrite,
FileShare.ReadWrite, 0, FileMode.Create, 0, IntPtr.Zero),
FileAccess.ReadWrite);
fs.Write(doc, 0, doc.Length);
fs.Close();
}

static void Main(string[] args)
{
string printerPort_Lexmark = "IP_10.254.1.90"; // ports
mapped on the local machine to the various printers
string printerPort_HPColor = "IP_10.254.1.11"; // the
lexmark will print PDF's natively, dont expect the HP
string printerPort_PDFCreator = "PDFCreator"; // to play
nicely .. but there for testing

FileStream myFS = new FileStream("c:\\document.pdf",
FileMode.Open, FileAccess.Read); // read in the PDF
BinaryReader myBR = new BinaryReader(myFS);

byte[] outData = new byte[myBR.BaseStream.Length];

for (int x = 0; x == myBR.BaseStream.Length; x++)
outData[x] = myBR.ReadByte();

PrintDirect(printerPort_Lexmark, outData);
}
}
}

regards Bob

"JE" <jg*******@gmail.comwrote in message
news:Op*************@TK2MSFTNGP05.phx.gbl...
>>If you are looking to send a bitstream directly to a printer, use the
following code to open the port and print directly. The port can be
LPT1, COM1, etc or \\host\printershare.

using System;
using System.IO;
using System.Runtime.InteropServices;

[DllImport("Kernel32.dll")]
static extern IntPtr CreateFile(string filename,
[MarshalAs(UnmanagedType.U4)]FileAccess fileaccess,
[MarshalAs(UnmanagedType.U4)]FileShare fileshare, int
securityattributes, [MarshalAs(UnmanagedType.U4)]FileMode
creationdisposition, int flags, IntPtr template);

public static void PrintDirect(string port, byte[] doc){
FileStream fs = new FileStream(CreateFile(port, FileAccess.ReadWrite,
FileShare.ReadWrite, 0, FileMode.Create, 0, IntPtr.Zero),
FileAccess.ReadWrite);
fs.Write(doc,0,doc.Length);
fs.Close();
}




Jan 24 '07 #7
JE
Looks very good - I will definitely use this approach next time around.
We print a lot of raw stuff to our label printers and untill now the
..Net solution I used was similar to the old VB6 one we had before.
Bob wrote:
Hi Dave,

well the solution to my problem was here
http://support.microsoft.com/default.aspx/kb/322091 Your posts plus EJ's
pointed me in the right direction.

This solution works for my printer as it can print PDF's ..

cheers Bob

"Dave Sexton" <dave@jwa[remove.this]online.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
>Hi,

I haven't tried using the Win32 APIs to do this myself, but here's a
reference that might help:

Printing and Print Spooler Functions
http://msdn2.microsoft.com/en-us/library/ms535737.aspx

I'm going to need this eventually too - if you figure something out that's
pretty simple, please post your findings. Thanks!

--
Dave Sexton
http://davesexton.com/blog
http://www.codeplex.com/DocProject (Sandcastle in VS IDE)

"Bob" <no*******@nospamSam.com.auwrote in message
news:eU**************@TK2MSFTNGP06.phx.gbl...
>>Thanks JE ... this looked quite hopeful .. when I pasted it in it
compiles and runs but doesnt seem to drive any printer.
I traced though it up to the fs.write( ) and doc is populated ..
what have I missed ????? at worst I hoped to get garbage out of the
printer.

Below is my implimentation :

using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Runtime.InteropServices;

namespace printing_directly_to_printer
{
class Program
{
[DllImport("Kernel32.dll")]
static extern IntPtr CreateFile(string filename,
[MarshalAs(UnmanagedType.U4)]FileAccess fileaccess,
[MarshalAs(UnmanagedType.U4)]FileShare fileshare, int
securityattributes, [MarshalAs(UnmanagedType.U4)]FileMode
creationdisposition, int flags, IntPtr template);

public static void PrintDirect(string port, byte[] doc)
{
FileStream fs = new FileStream(CreateFile(port,
FileAccess.ReadWrite,
FileShare.ReadWrite, 0, FileMode.Create, 0, IntPtr.Zero),
FileAccess.ReadWrite);
fs.Write(doc, 0, doc.Length);
fs.Close();
}

static void Main(string[] args)
{
string printerPort_Lexmark = "IP_10.254.1.90"; // ports
mapped on the local machine to the various printers
string printerPort_HPColor = "IP_10.254.1.11"; // the
lexmark will print PDF's natively, dont expect the HP
string printerPort_PDFCreator = "PDFCreator"; // to play
nicely .. but there for testing

FileStream myFS = new FileStream("c:\\document.pdf",
FileMode.Open, FileAccess.Read); // read in the PDF
BinaryReader myBR = new BinaryReader(myFS);

byte[] outData = new byte[myBR.BaseStream.Length];

for (int x = 0; x == myBR.BaseStream.Length; x++)
outData[x] = myBR.ReadByte();

PrintDirect(printerPort_Lexmark, outData);
}
}
}

regards Bob

"JE" <jg*******@gmail.comwrote in message
news:Op*************@TK2MSFTNGP05.phx.gbl...
If you are looking to send a bitstream directly to a printer, use the
following code to open the port and print directly. The port can be
LPT1, COM1, etc or \\host\printershare.

using System;
using System.IO;
using System.Runtime.InteropServices;

[DllImport("Kernel32.dll")]
static extern IntPtr CreateFile(string filename,
[MarshalAs(UnmanagedType.U4)]FileAccess fileaccess,
[MarshalAs(UnmanagedType.U4)]FileShare fileshare, int
securityattributes, [MarshalAs(UnmanagedType.U4)]FileMode
creationdisposition, int flags, IntPtr template);

public static void PrintDirect(string port, byte[] doc){
FileStream fs = new FileStream(CreateFile(port, FileAccess.ReadWrite,
FileShare.ReadWrite, 0, FileMode.Create, 0, IntPtr.Zero),
FileAccess.ReadWrite);
fs.Write(doc,0,doc.Length);
fs.Close();
}


Jan 24 '07 #8
Hi Bob,

Great, thanks for posting the link.

--
Dave Sexton
http://davesexton.com/blog
http://www.codeplex.com/DocProject (Sandcastle in VS IDE)

"Bob" <no*******@nospamSam.com.auwrote in message
news:uJ**************@TK2MSFTNGP05.phx.gbl...
Hi Dave,

well the solution to my problem was here
http://support.microsoft.com/default.aspx/kb/322091 Your posts plus EJ's
pointed me in the right direction.

This solution works for my printer as it can print PDF's ..

cheers Bob

"Dave Sexton" <dave@jwa[remove.this]online.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
>Hi,

I haven't tried using the Win32 APIs to do this myself, but here's a
reference that might help:

Printing and Print Spooler Functions
http://msdn2.microsoft.com/en-us/library/ms535737.aspx

I'm going to need this eventually too - if you figure something out
that's pretty simple, please post your findings. Thanks!

--
Dave Sexton
http://davesexton.com/blog
http://www.codeplex.com/DocProject (Sandcastle in VS IDE)

"Bob" <no*******@nospamSam.com.auwrote in message
news:eU**************@TK2MSFTNGP06.phx.gbl...
>>Thanks JE ... this looked quite hopeful .. when I pasted it in it
compiles and runs but doesnt seem to drive any printer.
I traced though it up to the fs.write( ) and doc is populated ..
what have I missed ????? at worst I hoped to get garbage out of the
printer.

Below is my implimentation :

using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Runtime.InteropServices;

namespace printing_directly_to_printer
{
class Program
{
[DllImport("Kernel32.dll")]
static extern IntPtr CreateFile(string filename,
[MarshalAs(UnmanagedType.U4)]FileAccess fileaccess,
[MarshalAs(UnmanagedType.U4)]FileShare fileshare, int
securityattributes, [MarshalAs(UnmanagedType.U4)]FileMode
creationdisposition, int flags, IntPtr template);

public static void PrintDirect(string port, byte[] doc)
{
FileStream fs = new FileStream(CreateFile(port,
FileAccess.ReadWrite,
FileShare.ReadWrite, 0, FileMode.Create, 0, IntPtr.Zero),
FileAccess.ReadWrite);
fs.Write(doc, 0, doc.Length);
fs.Close();
}

static void Main(string[] args)
{
string printerPort_Lexmark = "IP_10.254.1.90"; // ports
mapped on the local machine to the various printers
string printerPort_HPColor = "IP_10.254.1.11"; // the
lexmark will print PDF's natively, dont expect the HP
string printerPort_PDFCreator = "PDFCreator"; // to play
nicely .. but there for testing

FileStream myFS = new FileStream("c:\\document.pdf",
FileMode.Open, FileAccess.Read); // read in the PDF
BinaryReader myBR = new BinaryReader(myFS);

byte[] outData = new byte[myBR.BaseStream.Length];

for (int x = 0; x == myBR.BaseStream.Length; x++)
outData[x] = myBR.ReadByte();

PrintDirect(printerPort_Lexmark, outData);
}
}
}

regards Bob

"JE" <jg*******@gmail.comwrote in message
news:Op*************@TK2MSFTNGP05.phx.gbl...
If you are looking to send a bitstream directly to a printer, use the
following code to open the port and print directly. The port can be
LPT1, COM1, etc or \\host\printershare.

using System;
using System.IO;
using System.Runtime.InteropServices;

[DllImport("Kernel32.dll")]
static extern IntPtr CreateFile(string filename,
[MarshalAs(UnmanagedType.U4)]FileAccess fileaccess,
[MarshalAs(UnmanagedType.U4)]FileShare fileshare, int
securityattributes, [MarshalAs(UnmanagedType.U4)]FileMode
creationdisposition, int flags, IntPtr template);

public static void PrintDirect(string port, byte[] doc){
FileStream fs = new FileStream(CreateFile(port, FileAccess.ReadWrite,
FileShare.ReadWrite, 0, FileMode.Create, 0, IntPtr.Zero),
FileAccess.ReadWrite);
fs.Write(doc,0,doc.Length);
fs.Close();
}



Jan 24 '07 #9

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

Similar topics

2
by: Darcy Kahle | last post by:
I am trying to do some advanced printing in python using the win32ui module, and have run into an issue. I need to print a page landscape. As I could not determine how to specify the orientation...
6
by: J P Singh | last post by:
Hi Guys Thanks a million for the help with my last query. Help me with this one if you can I have submit button on my form. I want the ASP page to print the html page when the user click...
2
by: gerb | last post by:
Hello, I realise this is not a pure Javascript question, and that VBscript is probably involved at some point, though not as much as I fear. If you opened this item looking for a pute Javascript...
0
by: hsifelbmur | last post by:
We are writing an app that automates printing of documents of different types. These documents are printed to PostScript files, not to a printer. The app uses shellExecute with the "printto" verb...
1
by: notregister | last post by:
does anyone know how to do broadcast printing using vb.net? or do u know of any other resources that do so ? thanks...
2
by: Loane Sharp | last post by:
Hi there I'm downloading data from a remote server to my local disk using Stream.Read() and Stream.Write() (as previously suggested by Ken Tucker in this group). By and large the download and...
0
by: tSureZureGuza | last post by:
Hi all, I'm a C# newbie and we're creating an app that will receive an encrypted PDF stream from a Web Service... Now one of the requirements is that the PDF file will have to be printed from...
0
by: Sandipan | last post by:
hi...im new to asp.net. i ve to do a project where the i ve to perform client side printing using asp.net. moreover i cant use the windows.print() function for this as per the requirement of the...
1
by: blessonin | last post by:
hi all, i want to know how to read the content of a http posted file using stream reader i am using the folloing line but an error in the last line sayin that " 'System.IO.Stream' cannot be...
6
by: =?Utf-8?B?QnJhc3NpY2FOaWdyYQ==?= | last post by:
Greetings, I have a web application that prints a form using PrintDocument on the server. Currently it is set up to print to the default printer (on the server). My users would like to be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.