Home > Archive > Programming with dBASE > November 2005 > VDB5.7 question: Report form XXX to file









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author VDB5.7 question: Report form XXX to file
eric wu

2005-11-22, 9:23 am

Report form myreport to file "c:\test"

this command runs fine in design mode (Visual dBase 5.7) , but after I build
it into an exe .
I got Report Engine Error: No Printer destination specified

How to fix it ?

Eric


Paul Van House

2005-11-22, 9:23 am

In article <NbLi8N37FHA.2136@news-server>, ericwuu@hotmail.com says...
> Report form myreport to file "c:\test"
>
> this command runs fine in design mode (Visual dBase 5.7) , but after I build
> it into an exe .
> I got Report Engine Error: No Printer destination specified
>
> How to fix it ?
>
> Eric
>
>
>

Apparently, even though you're going to file you need a "valid" print
device.

Be sure your default printer is a "real" printer (ie not a fax driver or
other device)

(If Windows 2000/2003/XP) Make sure your output printer is a local
printer attached to an LPT Port, or a Network or USB printer mapped to
an LPT port.

See
http://www.binxsoftware.com/ printi...indows_2000.htm
For instructions to which I refer my customers.
--
Paul Van House
remove ".removeme" for e-mail replies
Radio/TV Software and Baseball Stat Software:
http://www.binxsoftware.com
Family Home Page: http://vanhouse.binxsoftware.com
Church Home Page: http://www.ashfordumc.org
eric wu

2005-11-22, 8:23 pm

Thanks,

my default printer was mapped to an LPT port.
but it still won't work , what else could be wrong ?




"Paul Van House" <pvanhouse1.removeMe@houston.rr.com> wrote in message
news:MPG. 1decee89b14ff6999896
b2@news.dbase.com...
> In article <NbLi8N37FHA.2136@news-server>, ericwuu@hotmail.com says...
> Apparently, even though you're going to file you need a "valid" print
> device.
>
> Be sure your default printer is a "real" printer (ie not a fax driver or
> other device)
>
> (If Windows 2000/2003/XP) Make sure your output printer is a local
> printer attached to an LPT Port, or a Network or USB printer mapped to
> an LPT port.
>
> See
> http://www.binxsoftware.com/ printi...indows_2000.htm
> For instructions to which I refer my customers.
> --
> Paul Van House
> remove ".removeme" for e-mail replies
> Radio/TV Software and Baseball Stat Software:
> http://www.binxsoftware.com
> Family Home Page: http://vanhouse.binxsoftware.com
> Church Home Page: http://www.ashfordumc.org



Frank J. Polan

2005-11-22, 8:23 pm

Eric,

I can't remember exactly but I thinks it's something to do with the
Database location in Crystal 3.0
Try this -
In Crystal - go to Database/File Location/Set Location - Same as
report

I had to do this when I moved some old apps to a new PC running XP

Frank Polan

On Tue, 22 Nov 2005 14:43:38 -0600, "eric wu" <ericwuu@hotmail.com>
wrote:

>
>Thanks,
>
>my default printer was mapped to an LPT port.
>but it still won't work , what else could be wrong ?
>
>
>
>
>"Paul Van House" <pvanhouse1.removeMe@houston.rr.com> wrote in message
>news:MPG. 1decee89b14ff6999896
b2@news.dbase.com...
>
>



eric wu

2005-11-22, 8:23 pm

Thank you ,but
I tried Database/File Location/Set Location - Same as report
ans I still got Report Engine Error: No Printer destination specified

( it works fine in Visual dBase5.7 , but not working in my EXE )



"Frank J. Polan" <fpolan@pcassist.on.ca> wrote in message
news:3v27o1povnaea1k
sdjv5odj27juvc4n7pt@
4ax.com...
> Eric,
>
> I can't remember exactly but I thinks it's something to do with the
> Database location in Crystal 3.0
> Try this -
> In Crystal - go to Database/File Location/Set Location - Same as
> report
>
> I had to do this when I moved some old apps to a new PC running XP
>
> Frank Polan
>
> On Tue, 22 Nov 2005 14:43:38 -0600, "eric wu" <ericwuu@hotmail.com>
> wrote:
>
>
>



Frank J. Polan

2005-11-22, 8:23 pm

Eric

That's my only suggestion for now. Maybe someone else has a
suggestion.

But it's made me curious. I'll take a look at my VDB57 app tonight.
The following info might help

Are the IDE & the executable on the same PC.
Is the printer attached to the PC that has the executable
Is the printer selected in Crystal the default printer on the PC

Frank Polan

On Tue, 22 Nov 2005 15:53:06 -0600, "eric wu" <ericwuu@hotmail.com>
wrote:

>
>Thank you ,but
>I tried Database/File Location/Set Location - Same as report
>ans I still got Report Engine Error: No Printer destination specified
>
>( it works fine in Visual dBase5.7 , but not working in my EXE )
>
>
>
>"Frank J. Polan" <fpolan@pcassist.on.ca> wrote in message
> news:3v27o1povnaea1k
sdjv5odj27juvc4n7pt@
4ax.com...
>
>



Richard Perryman

2005-11-23, 9:23 am

eric wu wrote:
> Thanks,
>
> my default printer was mapped to an LPT port.
> but it still won't work , what else could be wrong ?
>
>


If your using Wind XP or 2000, VDB 5.7 will not necessarily default to
the default printer. Try adding this code before your report runs.

&& these 2 lines usually can force 5.7 to use the default printer
keyboard("{alt+d}{enter}")
chooseprinter()
&& then add "report form ..... to file"
eric wu

2005-11-23, 8:23 pm


keyboard("{alt+d}{enter}")
chooseprinter()
report form ..... to file "c:\test"

still the same error message.......
Thanks! anyway


"Richard Perryman" < richard@vipindustrie
s.com> wrote in message
news:GpASmWD8FHA.1520@news-server...
> eric wu wrote:
>
> If your using Wind XP or 2000, VDB 5.7 will not necessarily default to the
> default printer. Try adding this code before your report runs.
>
> && these 2 lines usually can force 5.7 to use the default printer
> keyboard("{alt+d}{enter}")
> chooseprinter()
> && then add "report form ..... to file"



Charlie Lutz

2005-11-25, 7:23 am

In article <GpASmWD8FHA.1520@news-server>, richard@vipindustrie
s.com
says...[color=darkred]
> eric wu wrote:
It appears that dB 5.7 defaults to the last printer installed instead of
the Windows default printer. I haven't tried it, but I have wondered if
I uninstalled my default printer and then reinstalled it would 5.7 use
it automatically?

Charlie
--


____________________
________
Charlie Lutz
#1000441
Richard Perryman

2005-11-25, 9:23 am

eric wu wrote:
> keyboard("{alt+d}{enter}")
> chooseprinter()
> report form ..... to file "c:\test"
>
> still the same error message.......


I think I would try just "chooseprinter()" so I could see which printer
is selected before it trys to print. Another thing, you could just
create a "generic printer" in windows with the port set to "to file" and
try printing to that printer. Just a thought....

thanks
eric wu

2005-11-29, 3:23 am

I did change to port to "to file"
still not working.

is it really something about default printer ?
I wonder am I the only one who have this problem ?


"Charlie Lutz" <lutzc@(remove)wes.army.mil> wrote in message
news:MPG. 1df0cb1657fa001d9896
aa@news.dbase.com...
> In article <GpASmWD8FHA.1520@news-server>, richard@vipindustrie
s.com
> says...
> It appears that dB 5.7 defaults to the last printer installed instead of
> the Windows default printer. I haven't tried it, but I have wondered if
> I uninstalled my default printer and then reinstalled it would 5.7 use
> it automatically?
>
> Charlie
> --
>
>
> ____________________
________
> Charlie Lutz
> #1000441



Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com