Hi AccessGuruCarl,
What I did was buy a twain contro lfrom the web that supports multipage tiff's and used the pic box to display the picture. The Twain control was only about $100 bucks (I didn't want to program a huge program since I was short for time). It worked well.
MuthuIVS
Not really, I haven't had a chance to look at GDI+ functioanlity, I need to have a version 1 of this project done ASAP and since I am working with Twain controls that easily set it up as bmp and TIFF, i will use bmp for display and tiff for the actual purpose that will come later. After...
Thsnks for the feedback, I guess I will save the documents as bitmaps for dispaly and printing. Any Idea how to send it to the printer though?
MuthuIVS
Hi Guys/Gals,
I am trying to print a tiff image using vb6, any Idea how to do this by using somekind of print function and calling the tiff file that needs to be printed. EG: I have 101.tiff saved in c:\Scans, and I need vb code to send this to the printer by clicking a button on my form. Any...
Hi Guys/Gals,
I am writing a program that needs the user to scan in documents using either adobe or the software provided by the scanner makers (such as travelscan pro, etc). My program needs to have have button that says "SCAN DOCUMENT", and when it is pressed I need the program to...
I was trying to print to a usb printer but I didn't know how so I out put the results to a rtf then get the user to print from there. I gave up trying to print sirectly :(
MuthuIVS
I am not sure what you are trying to do but if you want to add numbers to a string, try stringstream,
EG;
char somechars[10];
stringstream strNew;
int counter = 55;
string str1 ="Hello";
:
:
:
strNew<<somechars<<str1<<"/"<<counter<<str2
I am printing to a RTF then maually printing the file. It seems to be easier especially porting it to a different compiler may be hell down the road. Thanks.
MuthuIVS
I am using Visual C and I get an error with that code also. Just thought you might want to know that cpjust isn't the only one. I haven't tried his code yet though.
MuthuIVS
Its strting to work, this is what I am doing, I am first trying to just read the template and print it to another file:
The only question now is do I need to clear the char variable everytime I read a charachter? If so would char buffer = ' ' , work?
Code
ifstream fin("c:/Program...
How do you read a template though? Aren't templates page margins, tab distances and so on. How do you read stuff like that and write it to another file?
But how do I transfer the data to my template file to print? As for code: Here is the code where I call to opent the rtf file, then attempt to write to it. It writes to the file but my formatting in the file is gone.
ofstream fout("c:/Program Files/MyRenamer/LabelTemplate.rtf");
for(int...
I am now trying to print the output to a RTF template that will defintely work since I have my formatting saved in the template but once my program writes to it , the formatting in the RTF is all deleted. Any Idea how to get around that? It doesn't even save the page setup for printing.
MuthuIVS
Does anyone know how to get a c++ program to output to a usb printer or at the very least an acrobat distiller? I am trying to use the following:
ofstream print;
print.open("lpt1:", ios::out);
print<<"blah blah blah";
but I guess I have a usb printer and not a lpt1 printer. PLease help...I...
Hi Guys/Gals,
Is there a way to control the output size in c++, in other words, the font size. I am making a label making program, but the problem I am running into, is the fact that A is a different size that M so depending on the letter being typed the output is starting at slightly...
OK...Here is what I am trying to do
#include....
int main()
{
char response;
string strfilename;
cout<<"Do you want to run another batch (Y/N) : ";
cin>>response;
response = toupper(response);
if ((response != 'Y') && (response != 'N'))
{
do{
cin>>response;
response =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.