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.Draw Image( ) or
e.Graphics.Draw String( )
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.Draw String( ) .. 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 'programaticall y' push the file onto the
print queue ?
Regards. 8 41878
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*******@nosp amSam.com.auwro te in message
news:ur******** ******@TK2MSFTN GP03.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.Draw Image( ) or
e.Graphics.Draw String( )
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.Draw String( ) .. 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 'programaticall y' push the file onto the
print queue ?
Regards.
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\printers hare.
using System;
using System.IO;
using System.Runtime. InteropServices ;
[DllImport("Kern el32.dll")]
static extern IntPtr CreateFile(stri ng filename,
[MarshalAs(Unman agedType.U4)]FileAccess fileaccess,
[MarshalAs(Unman agedType.U4)]FileShare fileshare, int
securityattribu tes, [MarshalAs(Unman agedType.U4)]FileMode
creationdisposi tion, int flags, IntPtr template);
public static void PrintDirect(str ing port, byte[] doc){
FileStream fs = new FileStream(Crea teFile(port, FileAccess.Read Write,
FileShare.ReadW rite, 0, FileMode.Create , 0, IntPtr.Zero),
FileAccess.Read Write);
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.Draw Image( ) or
e.Graphics.Draw String( )
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.Draw String( ) .. 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 'programaticall y' push the file onto the
print queue ?
Regards.
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.Collecti ons.Generic;
using System.Text;
using System.IO;
using System.Runtime. InteropServices ;
namespace printing_direct ly_to_printer
{
class Program
{
[DllImport("Kern el32.dll")]
static extern IntPtr CreateFile(stri ng filename,
[MarshalAs(Unman agedType.U4)]FileAccess fileaccess,
[MarshalAs(Unman agedType.U4)]FileShare fileshare, int
securityattribu tes, [MarshalAs(Unman agedType.U4)]FileMode
creationdisposi tion, int flags, IntPtr template);
public static void PrintDirect(str ing port, byte[] doc)
{
FileStream fs = new FileStream(Crea teFile(port,
FileAccess.Read Write,
FileShare.ReadW rite, 0, FileMode.Create , 0, IntPtr.Zero),
FileAccess.Read Write);
fs.Write(doc, 0, doc.Length);
fs.Close();
}
static void Main(string[] args)
{
string printerPort_Lex mark = "IP_10.254.1.90 "; // ports
mapped on the local machine to the various printers
string printerPort_HPC olor = "IP_10.254.1.11 "; // the
lexmark will print PDF's natively, dont expect the HP
string printerPort_PDF Creator = "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(my FS);
byte[] outData = new byte[myBR.BaseStream .Length];
for (int x = 0; x == myBR.BaseStream .Length; x++)
outData[x] = myBR.ReadByte() ;
PrintDirect(pri nterPort_Lexmar k, outData);
}
}
}
regards Bob
"JE" <jg*******@gmai l.comwrote in message
news:Op******** *****@TK2MSFTNG P05.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\printers hare.
using System;
using System.IO;
using System.Runtime. InteropServices ;
[DllImport("Kern el32.dll")]
static extern IntPtr CreateFile(stri ng filename,
[MarshalAs(Unman agedType.U4)]FileAccess fileaccess,
[MarshalAs(Unman agedType.U4)]FileShare fileshare, int securityattribu tes,
[MarshalAs(Unman agedType.U4)]FileMode creationdisposi tion, int flags,
IntPtr template);
public static void PrintDirect(str ing port, byte[] doc){
FileStream fs = new FileStream(Crea teFile(port, FileAccess.Read Write,
FileShare.ReadW rite, 0, FileMode.Create , 0, IntPtr.Zero),
FileAccess.Read Write);
fs.Write(doc,0, doc.Length);
fs.Close();
}
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******** ******@TK2MSFTN GP06.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*******@nosp amSam.com.auwro te in message
news:ur******** ******@TK2MSFTN GP03.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.Draw Image( ) or e.Graphics.Dra wString( )
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.Dra wString( ) .. 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 'programaticall y' push the file onto the print queue ?
Regards.
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*******@nosp amSam.com.auwro te in message
news:eU******** ******@TK2MSFTN GP06.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.Collecti ons.Generic;
using System.Text;
using System.IO;
using System.Runtime. InteropServices ;
namespace printing_direct ly_to_printer
{
class Program
{
[DllImport("Kern el32.dll")]
static extern IntPtr CreateFile(stri ng filename,
[MarshalAs(Unman agedType.U4)]FileAccess fileaccess,
[MarshalAs(Unman agedType.U4)]FileShare fileshare, int
securityattribu tes, [MarshalAs(Unman agedType.U4)]FileMode
creationdisposi tion, int flags, IntPtr template);
public static void PrintDirect(str ing port, byte[] doc)
{
FileStream fs = new FileStream(Crea teFile(port,
FileAccess.Read Write,
FileShare.ReadW rite, 0, FileMode.Create , 0, IntPtr.Zero),
FileAccess.Read Write);
fs.Write(doc, 0, doc.Length);
fs.Close();
}
static void Main(string[] args)
{
string printerPort_Lex mark = "IP_10.254.1.90 "; // ports
mapped on the local machine to the various printers
string printerPort_HPC olor = "IP_10.254.1.11 "; // the
lexmark will print PDF's natively, dont expect the HP
string printerPort_PDF Creator = "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(my FS);
byte[] outData = new byte[myBR.BaseStream .Length];
for (int x = 0; x == myBR.BaseStream .Length; x++)
outData[x] = myBR.ReadByte() ;
PrintDirect(pri nterPort_Lexmar k, outData);
}
}
}
regards Bob
"JE" <jg*******@gmai l.comwrote in message
news:Op******** *****@TK2MSFTNG P05.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\printers hare.
using System; using System.IO; using System.Runtime. InteropServices ;
[DllImport("Kern el32.dll")] static extern IntPtr CreateFile(stri ng filename, [MarshalAs(Unman agedType.U4)]FileAccess fileaccess, [MarshalAs(Unman agedType.U4)]FileShare fileshare, int securityattribu tes, [MarshalAs(Unman agedType.U4)]FileMode creationdisposi tion, int flags, IntPtr template);
public static void PrintDirect(str ing port, byte[] doc){ FileStream fs = new FileStream(Crea teFile(port, FileAccess.Read Write, FileShare.Read Write, 0, FileMode.Create , 0, IntPtr.Zero), FileAccess.Rea dWrite); fs.Write(doc,0 ,doc.Length); fs.Close(); }
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******** ********@TK2MSF TNGP05.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*******@nosp amSam.com.auwro te in message
news:eU******** ******@TK2MSFTN GP06.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.Collecti ons.Generic; using System.Text; using System.IO; using System.Runtime. InteropServices ;
namespace printing_direct ly_to_printer { class Program { [DllImport("Kern el32.dll")] static extern IntPtr CreateFile(stri ng filename, [MarshalAs(Unman agedType.U4)]FileAccess fileaccess, [MarshalAs(Unman agedType.U4)]FileShare fileshare, int securityattribu tes, [MarshalAs(Unman agedType.U4)]FileMode creationdisposi tion, int flags, IntPtr template);
public static void PrintDirect(str ing port, byte[] doc) { FileStream fs = new FileStream(Crea teFile(port, FileAccess.Rea dWrite, FileShare.ReadW rite, 0, FileMode.Create , 0, IntPtr.Zero), FileAccess.Read Write); fs.Write(doc, 0, doc.Length); fs.Close(); }
static void Main(string[] args) { string printerPort_Lex mark = "IP_10.254.1.90 "; // ports mapped on the local machine to the various printers string printerPort_HPC olor = "IP_10.254.1.11 "; // the lexmark will print PDF's natively, dont expect the HP string printerPort_PDF Creator = "PDFCreator "; // to play nicely .. but there for testing
FileStream myFS = new FileStream("c:\ \document.pdf", FileMode.Ope n, FileAccess.Read ); // read in the PDF BinaryReader myBR = new BinaryReader(my FS);
byte[] outData = new byte[myBR.BaseStream .Length];
for (int x = 0; x == myBR.BaseStream .Length; x++) outData[x] = myBR.ReadByte() ;
PrintDirect(pri nterPort_Lexmar k, outData); } } }
regards Bob
"JE" <jg*******@gmai l.comwrote in message news:Op******* ******@TK2MSFTN GP05.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\printers hare.
using System; using System.IO; using System.Runtime. InteropServices ;
[DllImport("Kern el32.dll")] static extern IntPtr CreateFile(stri ng filename, [MarshalAs(Unman agedType.U4)]FileAccess fileaccess, [MarshalAs(Unman agedType.U4)]FileShare fileshare, int securityattri butes, [MarshalAs(Unman agedType.U4)]FileMode creationdispo sition, int flags, IntPtr template);
public static void PrintDirect(str ing port, byte[] doc){ FileStream fs = new FileStream(Crea teFile(port, FileAccess.Read Write, FileShare.Rea dWrite, 0, FileMode.Create , 0, IntPtr.Zero), FileAccess.Re adWrite); fs.Write(doc, 0,doc.Length); fs.Close(); }
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******** ********@TK2MSF TNGP05.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*******@nosp amSam.com.auwro te in message news:eU******* *******@TK2MSFT NGP06.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.Collecti ons.Generic; using System.Text; using System.IO; using System.Runtime. InteropServices ;
namespace printing_direct ly_to_printer { class Program { [DllImport("Kern el32.dll")] static extern IntPtr CreateFile(stri ng filename, [MarshalAs(Unman agedType.U4)]FileAccess fileaccess, [MarshalAs(Unman agedType.U4)]FileShare fileshare, int securityattribu tes, [MarshalAs(Unman agedType.U4)]FileMode creationdisposi tion, int flags, IntPtr template);
public static void PrintDirect(str ing port, byte[] doc) { FileStream fs = new FileStream(Crea teFile(port, FileAccess.Re adWrite, FileShare.ReadW rite, 0, FileMode.Create , 0, IntPtr.Zero), FileAccess.Read Write); fs.Write(doc, 0, doc.Length); fs.Close(); }
static void Main(string[] args) { string printerPort_Lex mark = "IP_10.254.1.90 "; // ports mapped on the local machine to the various printers string printerPort_HPC olor = "IP_10.254.1.11 "; // the lexmark will print PDF's natively, dont expect the HP string printerPort_PDF Creator = "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(my FS);
byte[] outData = new byte[myBR.BaseStream .Length];
for (int x = 0; x == myBR.BaseStream .Length; x++) outData[x] = myBR.ReadByte() ;
PrintDirect(pri nterPort_Lexmar k, outData); } } }
regards Bob
"JE" <jg*******@gmai l.comwrote in message news:Op****** *******@TK2MSFT NGP05.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\printers hare.
using System; using System.IO; using System.Runtime. InteropServices ;
[DllImport("Kern el32.dll")] static extern IntPtr CreateFile(stri ng filename, [MarshalAs(Unman agedType.U4)]FileAccess fileaccess, [MarshalAs(Unman agedType.U4)]FileShare fileshare, int securityattr ibutes, [MarshalAs(Unman agedType.U4)]FileMode creationdisp osition, int flags, IntPtr template);
public static void PrintDirect(str ing port, byte[] doc){ FileStream fs = new FileStream(Crea teFile(port, FileAccess.Read Write, FileShare.Re adWrite, 0, FileMode.Create , 0, IntPtr.Zero), FileAccess.R eadWrite); fs.Write(doc ,0,doc.Length); fs.Close() ; }
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*******@nosp amSam.com.auwro te in message
news:uJ******** ******@TK2MSFTN GP05.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******** ********@TK2MSF TNGP05.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*******@nosp amSam.com.auwro te in message news:eU******* *******@TK2MSFT NGP06.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.Collecti ons.Generic; using System.Text; using System.IO; using System.Runtime. InteropServices ;
namespace printing_direct ly_to_printer { class Program { [DllImport("Kern el32.dll")] static extern IntPtr CreateFile(stri ng filename, [MarshalAs(Unman agedType.U4)]FileAccess fileaccess, [MarshalAs(Unman agedType.U4)]FileShare fileshare, int securityattribu tes, [MarshalAs(Unman agedType.U4)]FileMode creationdisposi tion, int flags, IntPtr template);
public static void PrintDirect(str ing port, byte[] doc) { FileStream fs = new FileStream(Crea teFile(port, FileAccess.Re adWrite, FileShare.ReadW rite, 0, FileMode.Create , 0, IntPtr.Zero), FileAccess.Read Write); fs.Write(doc, 0, doc.Length); fs.Close(); }
static void Main(string[] args) { string printerPort_Lex mark = "IP_10.254.1.90 "; // ports mapped on the local machine to the various printers string printerPort_HPC olor = "IP_10.254.1.11 "; // the lexmark will print PDF's natively, dont expect the HP string printerPort_PDF Creator = "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(my FS);
byte[] outData = new byte[myBR.BaseStream .Length];
for (int x = 0; x == myBR.BaseStream .Length; x++) outData[x] = myBR.ReadByte() ;
PrintDirect(pri nterPort_Lexmar k, outData); } } }
regards Bob
"JE" <jg*******@gmai l.comwrote in message news:Op****** *******@TK2MSFT NGP05.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\printers hare.
using System; using System.IO; using System.Runtime. InteropServices ;
[DllImport("Kern el32.dll")] static extern IntPtr CreateFile(stri ng filename, [MarshalAs(Unman agedType.U4)]FileAccess fileaccess, [MarshalAs(Unman agedType.U4)]FileShare fileshare, int securityattr ibutes, [MarshalAs(Unman agedType.U4)]FileMode creationdisp osition, int flags, IntPtr template);
public static void PrintDirect(str ing port, byte[] doc){ FileStream fs = new FileStream(Crea teFile(port, FileAccess.Read Write, FileShare.Re adWrite, 0, FileMode.Create , 0, IntPtr.Zero), FileAccess.R eadWrite); fs.Write(doc ,0,doc.Length); fs.Close() ; } This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 of the printing,
I arranged the graphic elements on the page the way it should be. When
I got to printing text, it went across the page, not down as I need it
to go. I tried to use the hDC.SetWorldTransform(0, -1, 1, 0, 0, 0)
command to rotate...
|
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 the button.
or automatic printing in any way shape or form will be fine.
|
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 question, I'm sorry.
For an IE6 intranet application I'm running into some problems
regarding printing screens from the browser. The specs dictate these
requirements:
|
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 (and the
Process class). This is a server app which requires that everything is
done without user intevention.
The problem is that we need to grab these PostScript files after
they've been printed, for further processing. Is there a way to set the...
|
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...
| |
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 local write operations occur
successfully, but frequently the data transfer is "intermittent", ie.
sometimes the connection to the server becomes idle and no data transfer
occurs over the wire. The code eventually resumes execution as if all the...
|
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 memory, meaning no
local file should be created. Is there any way that a PDF stream can
be sent directly to the printer without having to open Adobe? Any help
would be appreciated, especially sample codes? :)
|
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 project. what can i do? pls help me wit some details...
|
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 converted to 'System.IO.StreamReader'."
Dim str As StreamReader
Dim hp As HttpPostedFile
hp = FileUpload1.PostedFile
str = hp.InputStream
pls help me
|
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 able to select the printer (there are several on
the network that the server can use).
How can I bring up a print dialog box in the client browser that offers the
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |