When Using MODI Printer / Sometimes It Prints 'blobs'

May 6, 2009

I have written a VB.NET program to open a word document and generate a .TIF file by printing it using the MODI printer. Usually the documents print fine. But, sometimes it appears as though all of the letters on each line are printed on top of each other which produces little square "blobs".[code]

View 1 Replies


ADVERTISEMENT

Select A Printer Before It Actually Prints Out?

Jun 26, 2010

I am doing a little program that writes to an excel file then it prints the worksheet out using

WorkSheet.PrintOutEx()

this does print out fine but i now need to select a printer before it actually prints out. How can i do this?

View 3 Replies

Application That Prints Formatted Text To A Printer?

May 11, 2011

Visual Studio 2005 I have an application that prints formatted text to a printer. I'm using the sample code from MSDN to impliment PrintDocument.PrintPage. My function for formatting the pages uses exactly the same code.

The problem is that the actual printout is off by one line. The footer from the first page prints at the top of the next page. Subsequent pages scroll down by one line for each page printed. If I reduce my formatted text lines by one, the opposite happens... the header from the second page prints at the bottom of the first page.

I've fussed with margin settings and fonts and I just can't seem to make it print pages correctly. I'm hoping that someone out there has seen this and can offer advice.

[Code]...

View 5 Replies

How To Find Remaining Number Of Prints Left On Printer

Dec 23, 2010

I want to find the remaining number of prints left on the printer. I use a Sony UP-CX1 dye sub printer. If I go to Printer Properties>Preferences it tells me the remaining prints and also the total prints on the current thermal head. How can I tap into this information with vb.net?

View 1 Replies

C# - Printing From WebBrowser Control Prints To Wrong Printer After Setting Default?

Apr 1, 2010

I have a WebBrowser control in a VB.NET WinForms app. I am able to set the default printer from code and print without prompting the user. However, there is also a print button that shows the PrintDialog. If this action is done first the page will print.Then if I try to programmatically print later (again setting the default printer to some other printer) the it will print to the last printer selected in the PrintDialog box even though I am resetting the default and see the default printer being changed in Windows.It works fine unless ShowPrintDialog has a printer chosen first. Once that occurs it seems to always use that printer no matter what I do.

For Each strPrinter In PrinterSettings.InstalledPrinters
If strPrinter.Contains("My Printer") Then
wScript.SetDefaultPrinter(strPrinter)

[code]....

View 2 Replies

Use Program To Change An Excel Workbooks Printer Settings To 2 Sided / Duplex Before It Prints?

Jul 30, 2010

How to use vb.net to change an excel workbooks printer settings to 2 sided or duplex before it prints??

View 2 Replies

Reading Blobs From Access Db?

Jun 14, 2009

i have to store and read pdf files in an access db. it seems not to work with larger files

the code for reding fom db:

[code]
Dim cn As New OleDbConnection(constr)
Dim cmd As New OleDbCommand("SELECT ....., cn)
cn.Open()

[Code]....

View 3 Replies

VS 2008 Migrate BLOBs Out Of Database

Apr 27, 2009

I have a suite of programs that currently store PDF files as BLOBs in a SQL Server database table. The purpose of this design is to take advantage of Adobe's PDF iFilter and Microsoft's Full-Text Search functionality to allow other modules of my suite to run queries against the contents of a PDF file.This has been a huge headache, however, resulting in databases that are gigantic and unwieldy. We have also run into problems getting the Adobe PDF iFilter to play nice at times. Further, re-creating the entire full-text index on an 80 GB database can take a looooooong time (when it works at all!).So, the new idea is to use the open source XPdf library to extract a copy of the textual contents from each PDF file, and instead of storing the entire BLOB, merely store that textual data for the full-text functionality. Then, instead of storing the whole PDF file in the database, it will be stored somewhere on the server's file system.My issue relates to that last bit, storing the file on the server's file system, and the subsequent serving of that file out to remote users. Currently, with the entire BLOB residing inside of SQL, it has been very simple (though not easy) to manipulate the BLOB from the server to the client and vice versa. Sending the files across the network in chunks worked out well, too. I'm not sure how to do what I want to do now, though. I'm thinking that it's not a good solution to simply make a network share where all of the PDF files are stored and let the remote user view them by issuing a: Process.Start("{remote file share}filename.pdf")What I would LIKE to do is the following:

1. A Search is run, and the end user selects a file for viewing.
2. The SQL Server knows where the file resides on the local file system.
3. Something (on the server) issues a command to create a temp copy of the file at a safe location that is shared over the network.
4. The client's program then opens the file using a web browser.

Advantages:

1. The main body of the PDF files are protected and hidden from the prying eyes of those who shouldn't see them.
2. PDF files with Fast Web View enabled will load in a linear fashion, improving user experience.

Drawbacks:

1. I don't know what the "something" is in #3 above.
2. I don't know what happens when a file type other than ".pdf" is the target of the URL in a web browser. I know simple image formats will just open, but what if the file is ".doc/x". What about any other file type? Is it the same as issuing a "Process.Start("") to the UNC path?

View 5 Replies

.net - Insert Large Blobs Into Oracle 10G Using System.Data.OracleClient?

Mar 26, 2010

Trying to insert 315K Gif files into an Oracle 10g database. Everytime I get this error "ora-01460: unimplemented or unreasonable conversion requested" whe I run the stored procedure. It appears that there is a 32K limit if I use a stored procedure. I read online that this does not apply if you are doing a direct insert, but I do not know how to create the insert string for a Byte Array. This is a thick client running on the server so not worried about SQL Injection attacks.

View 1 Replies

MODI Save As Popup To Appear At All

Oct 17, 2007

I have an applicaiton that I wrote that converts PDFs into TIFFS using the MODI driver and it works fine except for one part. Once I use Adobe to print out the PDF to the (MODI) driver, I get a "Save As" popup. The name of the file is correct and all I need to do is to click save. Problem is that I do not want the "Save As" to appear at all. Is there a way to prevent this window from coming up and just save it to default location? I need to take my application code and make it into a windows service, so having this popup really makes it hard.

View 2 Replies

Retrieve MODI Reference From COM In My Application?

Feb 14, 2012

Retrieving the COM class factory for component with CLSID {40942A6C-1520-4132-BDF8-DC1F71F547B} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).How can I retrieve MODI reference from COM in my application ? I have no dll file of MODI.& I have used the reference file called AxInterop.MODI & Interop.MODIBut I am not able to execute the application.I need this file to retrieve text from images.

public partial class Form1 : Form
{
public Form1e & Btnclick as Button

[code].....

View 2 Replies

Specify Output Name For Modi Printing Of Html Doc

Oct 6, 2010

I'm printing HTML files stored on disk to tiff files using the Office MODI driver (set as the default printer). I need to multithread this code, and therefore I need to specify the output filename for the modi driver to use, otherwise I won't know which output file is for which thread. I'm currently printing the html using a webbrowser control on the form, but this not important, I'm happy to use any method that will allow me to specify the output file.

[Code]...

View 1 Replies

MODI Gives BAD LANGUAGE Error For English Documents

Jul 20, 2010

I have been using MODI component of Office 2007 for extracting text from TIFF documents. It was working fine untill today when I executed my code it gave the error of "OCR: Bad Language" I have not made any changes in code so in tif documents.I am scanning English documents.

[Code]...

View 1 Replies

Asp.net - Store Blobs / Rich Text Memos As Rtf Programmatically On Server Hard Disc Instead Of The Database?

Jan 14, 2011

is there a way to store blobs / rich text memos as rtf programmatically on server hard disc instead of the database ?

Update (1)

i want to write in a memo field and store it using identifiers like sessions and time stamps for example writing a memo with the session "subject" and session "dateANDtime" to be stored as "mysubject-12/12/2010-11:56pm.rtf"

how to retrieve the file. can i build hyperlink programmatically?

View 3 Replies

IDE :: Modi Image Viewer Do Not Display Tiff Images

Dec 26, 2009

m want to display tif images into my project. then i used a third party software (trial version CPImageViewer) it's working nicely. but problem is it's 3 months trial verison and it display message while running program....'Demo version'. so it hassle for end user. then im trying to use Microsoft Office Document Image Vierwer Library 11.0.

but problem is while i first time i set file name property its display the file but then it doesn't display any file.

note that, i m developing this project using VB6 under W2K3 platform.

my used code is given below:

modivierwer.filename="c:filename.tif"

i searched a day long for useful sample but nothing find useful.

View 1 Replies

Use MODI OCR To Process Checkboxes (non Alpha Non Numeric Characters/items)?

Mar 27, 2012

I have a vb.net application successfully processing the text in TIF files, but it is ignoring the checkboxes. Is there anyway to use MODI to process anything within the file that is not text? Such as a mark that a person has made with a pen inside a checkbox? I think I would need to be able to evaluate where the pixels are. This is for a zero budget personal project.

View 1 Replies

Print An Array WebBrowser Each Time To A Different Printer Without Changing The Default Printer

Feb 24, 2009

I want to print an array WebBrowser each time to a different printer without changing the default Printer (not to use the SetDefaultPrinter function) I tried to work with the PrintDocument object(he have the Print function and also i can choose a printer name) but I cant attach the

[Code]...

View 1 Replies

Print Word Document In Dot Matrix Printer With Printer Default Font?

Apr 21, 2010

i m using this this coding to copy and print the word document

System.IO.File.Copy(Application.StartupPath &"PrintT.doc", Application.StartupPath & "PrintT1.doc", True)

Dim line1 As String

Dim line2 As String

line1 = "Line1 Replace"

line2 = "Line2 Replace"

[Code]...

now i need to print the Word Document with Printer Default Font(Draft 17.5 CPI) in Dot Matricx Printer

View 2 Replies

Print Directly To The Printer : Change Printer Font Size?

Jul 2, 2010

For my current application development I need direct printing technique,For the purpose I refer Microsoft Support page Titled"How to send raw data to a printer using VB.Net "The code snippnet specified is perfect for my application.Refers link [URL]But I need something more like Setting the Printer font to Condensed.By default my printer use the font 10cpi ,by using this font size I limited to print only 80char on A4 sheet,but I have more than 80 char on line so I prefer Condensed font size.

View 2 Replies

VS 2008 : Get Network Computer's Printer List And Printer Info?

Dec 7, 2009

get a list of printer's (name,port,model) from a computer over the network. I know how to list my own, but it's from querying the Win32_printer object on my machine, I need to be able to do something similar on a remote machine.

View 4 Replies

Check Printer Status On A Win98 Shared Printer?

Sep 3, 2009

I'm trying to check the printer status of a shared printer on a Win98 platform pc and need some samples to get started.

View 3 Replies

Get Printer DEVMODE Or HDC With Correct Printer Settings

Feb 22, 2011

I have printer vendor provided SDK implementing that i can get printer DEVMODE or HDC with correct printer settings.

My questions is:

I am already using printDocument to print the image (System.Drawing.Bitmap). How can send use this HDC or DEVMOD with printDocument.

I already tried using the "PrintDocument.SetDevMode". it seems not be working.

View 3 Replies

Printer Stuff - Detect If My Printer Is Busy ?

Mar 18, 2011

1. Detect if my printer is busy, because my code tells the printer to print more pages that it can cope with, so I need to delay the command for 'Print the next page' until the printer has finished printing the previous one.

2. Shift the output to my printer so that it gets printed in it's entirety on the paper, instead of seemingly being anchored to some nebulous point on the A4 page. It starts printing at X = 29mm from the left edge, and Y is 28mm from the top, and stops at X = 22mm from the right edge and Y stops at 22mm from the bottom edge, leaving (aprox) 50mm of X and 50mm of Y unprinted.

3. Get useful information on Bounds, which I'm fairly certain is what I need to control where my printing should start and finish.

I've hunted through this forum, MSDN, 'Help' (a misnomer if ever there was one) the VB Library and one or two other forums, which either baffle me with reams of code or suggest code to try which either just don't work or which doesn't declare all the variables and usually don't suggest what type of variable I need, it's all very frustrating

View 9 Replies

Extract A Value From A Listbox That Prints 2 Different Values

Jun 4, 2009

I have a listbox that prints 2 different values each line. The first one is String and the second one is an Integer, (although I've converted it to String). How do I extract the first String value? One is suposed to be able to mark one line, and remove the selected lines values from 2 different arrays, and for that I need the String value.

View 2 Replies

Print Preview Only Prints Last Page?

Jan 18, 2012

Private Sub btnPrint_Click(sender As System.Object, e As System.EventArgs) Handles btnPrint.Click
Dim PrintPreviewDialog1 As New PrintPreviewDialog()

[Code]...

Document1 is 3 pages long. When print preview comes up, it shows all 3 pages like it should. However, when I push the print icon on the print preview form it only prints the last page.

View 4 Replies

Printing :: VB 2008 Prints The Same Page Over And Over?

Feb 16, 2010

I have tried to create an amortization program The issue that I am having is that the program wants to print the same page over and over again. The first page of the printout runs through the "While loop" appropriately, but when the second page starts printing, it repeats the information that is on the first page. This is true of all subsequent pages I have included the printing portion of the code.

Private Sub cmdPrint_Click(ByValSystem.Object,System.EventArgs) Handles cmdPrint.Click 'Defines printed page

[code].....

View 1 Replies

Unique Computer ID Like Finger Prints?

Jun 11, 2011

Is there any unique computer ID that distinguishes a computer from other, like finger prints for human?

View 2 Replies

When Use Drawstring To Only Print Numbers It Just Prints Nothing

Jul 11, 2009

I have noticed that when I use drawstring to only print numbers, it just prints nothing. However if I put a letter in the string, it prints.

[Code]...

View 16 Replies

Create A Report That Prints Grouped Items?

Nov 13, 2010

I have 2 tables Markers and Clients. Within the Marketers table i have Team Leaders as well. I want to print a report that will display a Team Leader and the Marketer with all the Clients for that particular Marketer, and then do that for all the Marketers under that Team Leader.

[Code]...

View 2 Replies

VS 2008 : Monitor LPT Prints And Turn Them To The File?

Feb 26, 2010

Im currently working on application where i need to monitor LPT printer port for traffic. Now i need to found the way how to monitor LPT prints and turn them to the file. Anyone can help me out please. I have try to search on google and also here but not success, only what i found was example in VC++ but i need it in VB.NET or at least in C#.[URL]

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved