Re: Create PDF from VB without using a Printer
- From: "Steve Gerrard" <mynamehere@xxxxxxxxxxx>
- Date: Fri, 22 Jun 2007 07:04:02 -0700
"Ron Weiner" <rweineratworksritedotcom> wrote in message
news:OwU6T2LtHHA.4796@xxxxxxxxxxxxxxxxxxxxxxx
It is pretty impressive. I'm not so sure that formatted reports would be all
that bad, as long as they were fairly reasonable on formatting, and limited
on graphics. I could see doing some data reporting with it.
I agree creating formatted reports on the fly would not be a problem. However
if you wanted to open a file and keep all of the formatting found there
(fonts, bullets, tables, etc.) the translation would be a bear. Using a
similar commerical product I was able to create very complex data driven
reports (actually K-6 report cards) in a heartbeat.
Right. Adding your own formatting would be okay; trying to convert existing RTF
style formatting would be a nightmare. I have used commercial products all
along, including ActiveReports, which has a PDF export, so I'm just doodling
here...
I am curious about one line in the demo app, which is a method of invoking aI also was surprised to find this, and never have seen anything like this code
file viewer, in this case obviously the registered PDF file viewer. I haven't
seen this style before:
Call Shell("rundll32.exe url.dll,FileProtocolHandler " & (strFile),
vbMaximizedFocus)
Is this a handy way to open files, and is it better in some way than other
methods?
before. I have always used the API ShellExecuteA function to start the
registered application for a file. Might have to do some Goggling...
I did a little Googling. Apparently sometimes you can get snagged by
ShellExecute in multi-threaded situations, since the ability to launch an app by
file type was sort of tacked on using COM, and that may not get initialized
correctly in a separate thread - or something like that.
The rundll32.exe call, on the other hand, is a true .exe call to Shell (or
ShellExecute), passing some command line parameters. rundll32 in turn will run
the url.dll and call its FileProtocolHandler function, passing the rest of the
command line. The call itself won't fail; although it also won't return any
error back to the caller if it can't open the url.
.
- References:
- Create PDF from VB without using a Printer
- From: Andy
- Re: Create PDF from VB without using a Printer
- From: Saga
- Re: Create PDF from VB without using a Printer
- From: Andy
- Re: Create PDF from VB without using a Printer
- From: RDub
- Re: Create PDF from VB without using a Printer
- From: Steve Gerrard
- Re: Create PDF from VB without using a Printer
- From: Ron Weiner
- Create PDF from VB without using a Printer
- Prev by Date: Re: Has anyone every seen this problem before or have any ideas?
- Next by Date: Re: Need help with using Time comparison in code - please help
- Previous by thread: Re: Create PDF from VB without using a Printer
- Next by thread: Re: Create PDF from VB without using a Printer
- Index(es):
Relevant Pages
|